Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: utf8::is_utf8 valid introspection?

by dave_the_m (Prior)
on Jul 10, 2013 at 15:13 UTC ( #1043490=note: print w/replies, xml ) Need Help??


in reply to utf8::is_utf8 valid introspection?

Code that needs to use utf8::is_utf8 (apart from for debugging purposes) is, in general, likely to be buggy. Most of the time your code shouldn't need to care what internal format perl's currently using to store strings.

Except of course for "the Unicode bug", where the state of the utf8 flag on strings effects things like regexes for chars in the range 0x80..0xff. This has been reduced in more recent perls by the addition of things like the //a match modifier.

Dave.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1043490]
help
Chatterbox?
[choroba]: fortunately, I haven't the need to verify this
[choroba]: haven't had
[choroba]: but most tourist here are form the US, France, and Russia
[Your Mother]: The best whiskey in Thailand is Vietnamese, is all I know.

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2017-02-26 05:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (371 votes). Check out past polls.