James Edward Gray II wrote:

> Why when I run this one-liner:
> 
> perl -e 'print "\x{2660}\n"'
> 
> do I see this:
> 
> Wide character in print at -e line 1.
> 
> I'm assuming that's a warning, since I still get the expected output,
> but why am I getting it, when I didn't ask for them?
> 

different version seems to behave differently. my v5.6.0 never warn me about 
it. my v5.8.2 does emit a warning. you can turn it off by saying:

[panda]# perl -mbytes=no -e 'print "\x{2660}\n"'

there is a long discussion about what Perl should do when it encounters a 
byte sequence which is different than the current C local. should it 
upgrade to UTF-8 silently? should it warn? if the current C local is not 
UTF-8 then what? you can check the p5p list for the discussion.

david
-- 
s$s*$+/<tgmecJ"ntgR"tgjvqpC"vuwL$;$;=qq$
\x24\x5f\x3d\x72\x65\x76\x65\x72\x73\x65
\x24\x5f\x3b\x73\x2f\x2e\x2f\x63\x68\x72
\x28\x6f\x72\x64\x28\x24\x26\x29\x2d\x32
\x29\x2f\x67\x65\x3b\x70\x72\x69\x6e\x74
\x22\x24\x5f\x5c\x6e\x22\x3b\x3b$;eval$;

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to