Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: Simplest Possible Way To Disable Unicode

by ikegami (Pope)
on May 24, 2011 at 00:37 UTC ( #906391=note: print w/replies, xml ) Need Help??


in reply to Re: Simplest Possible Way To Disable Unicode
in thread Simplest Possible Way To Disable Unicode

Simply silencing the warning is not the solution.

print chr(200); print chr(1000);

will continue to be different than

print chr(200) . chr(1000);

as shown here:

>perl -we"no warnings qw( utf8 ); print chr(200); print chr(1000);" | +perl -nE"say length;" 3 >perl -we"no warnings qw( utf8 ); print chr(200) . chr(1000);" | perl +-nE"say length;" 4

Update: Mistakenly used 100 instead of 200 originally.

Replies are listed 'Best First'.
Re^3: Simplest Possible Way To Disable Unicode
by Anonymous Monk on May 24, 2011 at 00:59 UTC
    Simply silencing the warning is not the solution.

    So what is the solution?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://906391]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (8)
As of 2021-04-21 13:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?