Don't ask to ask, just ask | |
PerlMonks |
Re: encoding troubleby Eily (Monsignor) |
on Apr 26, 2019 at 14:43 UTC ( [id://1233019]=note: print w/replies, xml ) | Need Help?? |
Because @ARGV is not empty when you read with <>, the handle that is read from is not STDIN but ARGV instead. use open IO => ':utf8'; may work better (ARGV is only opened by <> at which point it's to late to call binmode because some data as already been read.) s/perlvar/ARGV/, thanks choroba
In Section
Seekers of Perl Wisdom
|
|