http://www.perlmonks.org?node_id=838962


in reply to Re^5: DWIM with non ASCII characters
in thread DWIM with non ASCII characters

My output doesn't match yours, even when I do have the terminal in UTF-8. But that doesn't bug me since, as ikegami points out, the string lengths I get are wrong when I use non-ASCII characters:

$ perl -l use warnings; use strict; print length 'ñ'; __END__ 2

Now I wonder how is it possible that I've never encountered any problems with this :^). Thanks!

--
 David Serrano
 (Please treat my english text just like Perl code, i.e. feel free to notify me of any syntax, grammar, style and/or spelling errors. Thank you!).