Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: need nextline() subby kwoff (Friar) |
on Nov 22, 2001 at 05:30 UTC ( [id://126918]=note: print w/replies, xml ) | Need Help?? |
First approach, you could just read one byte at a time.
Then when you find a "\n", voila you have a line.
Then you might start thinking about more efficient ways to do it if that wasn't good enough. Try to read in an 8k buffer, then parse that buffer. I'm still not sure why you couldn't use <FILEHANDLE>, though. You're talking about using seek, and that uses a FILEHANDLE too.
In Section
Seekers of Perl Wisdom
|
|