Your new version is still copying the entire file into mem. What you should try is changing your current approach:
to something like thisundef $/; my $bigfile = <$fh>; # Do some processing on $bigfile
while (my $line = <$fh>) { # Do some processing on $line }
Cheers,
R.
In reply to Re^2: Problem with utf8 after nearly 4096 bytes
by Random_Walk
in thread Problem with utf8 after nearly 4096 bytes
by gvieira
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |