in reply to Counting bytes in a Unicode document
Replacing
withopen my $FH, '<', $file
open my $FH, '<:raw', $file
will do the trick, but the aforementioned stat solution is much more efficient.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Counting bytes in a Unicode document
by LanX (Saint) on Oct 08, 2024 at 17:17 UTC | |
by ikegami (Patriarch) on Oct 09, 2024 at 00:32 UTC | |
by etj (Priest) on Oct 15, 2024 at 12:39 UTC | |
by ikegami (Patriarch) on Oct 15, 2024 at 15:38 UTC | |
by etj (Priest) on Oct 23, 2024 at 08:55 UTC | |
|