There's more than one way to do things | |
PerlMonks |
Re: Re: Re: split and sysread()by Limbic~Region (Chancellor) |
on Apr 19, 2003 at 00:19 UTC ( [id://251589]=note: print w/replies, xml ) | Need Help?? |
The issue with the above is it still reads in the file one line at a time, right?.
Wrong! Perl reads from the file in a buffer and only goes back out to disk when the buffer is empty. What <FILEHANDLE> does is read from the buffer up to the newline. I think you are falling prey to premature optimization.
Cheers - L~R Update: See this node by chromatic as he was setting me straight on the very same matter
In Section
Seekers of Perl Wisdom
|
|