You can set $/ to a reference to a literal number. Then the file will be read in chunks of that size.
{ local $/ = \1024; while (<$fh>) { # do things with 1k chunks in $_ } }
After Compline,
Zaxo
In reply to Re^3: Binary Comparision
by Zaxo
in thread Binary Comparision
by punklrokk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |