Replacing
withopen my $FH, '<', $file
open my $FH, '<:raw', $file
will do the trick, but the aforementioned stat solution is much more efficient.
In reply to Re: Counting bytes in a Unicode document
by ikegami
in thread Counting bytes in a Unicode document
by jwkrahn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |