go ahead... be a heretic | |
PerlMonks |
Re:^2 Setting UTF-8 mode on filehandle reads?by ph0enix (Friar) |
on Dec 06, 2002 at 12:32 UTC ( [id://218050]=note: print w/replies, xml ) | Need Help?? |
open(FILE, "<", "/path/to/utf8/file.txt") || die "$!";
Why don't use perl 5.8.0 and simply specify IO 'layer' when using three-argument form of open? open(FILE, '<:utf8', '/path/to/utf8/file.txt') || die $!;
In Section
Seekers of Perl Wisdom
|
|