in reply to Re^2: Binary Comparision
in thread Binary Comparision

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