Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: utf8::is_utf8 valid introspection?

by ikegami (Pope)
on Jul 11, 2013 at 00:23 UTC ( #1043601=note: print w/ replies, xml ) Need Help??


in reply to utf8::is_utf8 valid introspection?

If you need to work around a bug, just use

utf8::upgrade($var);

or

utf8::downgrade($var);

to get the the string in the expected storage format (regardless of the current storage format).

The only use I can think of for utf8::is_utf8 is for debugging, but I use Devel::Peek's Dump when I want to peek at a scalar's internals.


Comment on Re: utf8::is_utf8 valid introspection?
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (13)
As of 2015-07-06 13:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (74 votes), past polls