in reply to Using pragma utf8::all in processing non-utf data.
Hello humble and monks.
As daxim says, utf8::all dies because it imports its setting to your current code. In this case, "use warnings FATAL =>'utf8'" is imported from utf8::all and it dies. Below dies with utf8::all.
If you disable "use warnings FATAL =>'utf8'" temporally, I guess you will not die.print "before shiftjis\n"; open( my $fh, "<", "107.shiftjis.txt") or die $!; print join('', <$fh>); close $fh;
regardsuse warnings NONFATAL =>'utf8'; #disable print "before shiftjis\n"; open( my $fh, "<", "107.shiftjis.txt") or die $!; print join('', <$fh>); close $fh; "use warnings FATAL =>'utf8'"; #enable
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Using pragma utf8::all in processing non-utf data.
by daxim (Curate) on Sep 04, 2013 at 14:34 UTC | |
by remiah (Hermit) on Sep 04, 2013 at 23:56 UTC |
In Section
Seekers of Perl Wisdom