Leo_Yao has asked for the wisdom of the Perl Monks concerning the following question:
I try to use utf8::upgrade to upgrade a variable, but when I use print to see what happened to the variable, I found nothing was changed.
$s=chr(192); printf "%vd\n", $s; utf8::upgrade($s); printf "%vd\n", $s;
But if I use "use bytes", the value of $s is changed. Why is it?
use bytes; $s=chr(192); printf "%vd\n", $s; utf8::upgrade($s); printf "%vd\n", $s;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Does the utf8::upgrade change the value?
by Anonymous Monk on Feb 25, 2011 at 12:21 UTC | |
by Leo_Yao (Initiate) on Feb 25, 2011 at 13:48 UTC | |
by Anonymous Monk on Feb 25, 2011 at 14:09 UTC | |
by Leo_Yao (Initiate) on Feb 25, 2011 at 18:16 UTC |