Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re^2: How can you sysread an entire file?by NeilF (Sexton) |
on Jan 12, 2006 at 22:23 UTC ( [id://522822]=note: print w/replies, xml ) | Need Help?? |
Thanks... Not sure if I fully understand what you mean by "\n" is not portable? What exactly is the implication. I've run some tests and it seems to work OK on the files I've used it on (Windows XP & Unix). My ISP counts IO operations. Doing a "while <DF>" would mean an IO operation (I believe) for every 512 bytes of data as it is buffered in. By using sysread the whole file is read in by one IO operation. Hence me going down this approach...
In Section
Seekers of Perl Wisdom
|
|