Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Re: Re: How to process each byte in a binary file?by kschwab (Vicar) |
on Aug 13, 2002 at 03:05 UTC ( [id://189694]=note: print w/replies, xml ) | Need Help?? |
I added a test case for just using read(FILE,1) from a real file, and it's about the same speed as the unpack() on a string (for largish strings). Of course, this leaves the file open the whole time..but it's wonderfully simple :) I also have a very expensive Netapp filer helping the speed with read-ahead and a huge cache..YMMV.
In Section
Seekers of Perl Wisdom
|
|