By setting $/ to a reference to an integer, you can control how many bytes are read in each use of the diamond operator.
local $/ = \65536; my $scalar = <FILE>; print length $scalar; # prints 65536 (assuming :raw)
In reply to Re: Restriction on getting multiline data into a string
by BrowserUk
in thread Restriction on getting multiline data into a string
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |