#!/usr/bin/perl -wuse strict;open(FILE, '<', 'yourFile.txt') or die $!;my $lineno = 1;while () { print $lineno++; print ": $_";}close FH;