
read line by line in perl
+ How can I read a text file line by line in perl
+ read line one, dosomethoing read line 2 the do something and read line
+ three do something..
while not eof do begin
read file line
DoSomethingTo line
endwhile
In your case, I'll suggest 'Learning Perl', 2nd edition. Its blue, has
a llama on the cover. Then you can discover how to code the previous
pseudo-code into valid perl...
Or you can just simply read the documentation that came with your
distribution, if you don't want to spend $30 for a book.
James - actually, perl combines the read with the while statement, so its
a bit shorter than the pseudo-code