How about something simple like:
#!perl
$myfile="c:/myfile.txt";
open MYFILE, $myfile or die "Cannot open $myfile for read :$!";
while (<MYFILE>)
{
print "N1 $. $_";
}
while (<MYFILE>)
{
print "N $. $_";
}
OOPS My Bad- the above post shoulda been:
#!perl
$myfile="c:/myfile.txt";
open MYFILE, $myfile or die "Cannot open $myfile for read :$!";
while (<MYFILE>)
{
print "N1 $. $_";
}