The stupid question is the question not asked | |
PerlMonks |
Re: Re: Reading multiple lines?by rdw (Curate) |
on Nov 29, 2000 at 14:11 UTC ( [id://43875]=note: print w/replies, xml ) | Need Help?? |
Well that's the kind of thing which would be nice to write, except I'd probably do it like this :- @lines[0..9] = <FILE>...but it still reads the whole file in (it just throws most of it away). Firstly, that'll use too much memory in this case, and secondly you can't then read the next N lines in. Have fun,
In Section
Seekers of Perl Wisdom
|
|