Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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 perusing the Monastery: (11)
As of 2014-07-22 20:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (127 votes), past polls