|No such thing as a small change|
Reading multiple lines?by rdw (Curate)
|on Nov 28, 2000 at 07:26 UTC||Need Help??|
rdw has asked for the
wisdom of the Perl Monks concerning the following question:
Ok, this couldn't get much simpler - all I want to do is read multiple lines (or records) from a file.
I could do this :-
Or I could go completely mad and do this :-
I don't want to read the whole file into memory, so the first solution is no good for me, but the second solution seems a little silly.
Anybody got any better ideas?