The stupid question is the question not asked | |
PerlMonks |
Re: Read (sysread) binary data into utf8 stringby ikegami (Patriarch) |
on Apr 04, 2017 at 04:39 UTC ( [id://1186935]=note: print w/replies, xml ) | Need Help?? |
Asa a side note, if you want to switch the storage format of a scalar, best to use bultins utf8::upgrade($s); (switch to UTF8=1 format) or utf8::downgrade($s); (switch to UTF8=0 format) rather than _utf8_on and _utf8_off (which requires extra work to avoid creating bad scalars).
In Section
Seekers of Perl Wisdom
|
|