hi, I am working through the Nik Silver tutorial and have got as far as opening a text file and printing the output with the lines numbered using the following code :-
$file = 'c:
ess.txt'; # Name the file
open(INFO, $file); # Open the file
$g = '001';
while ($line = )
print "$g $line";
I have to manipulate this code so that blank lines are not counted or numbered but are still printed out, i have tried all sorts but can not get it to work, can someone help?