in reply to Re: Problem with utf8 after nearly 4096 bytes
in thread Problem with utf8 after nearly 4096 bytes
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.
|
|---|