Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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 wandering the Monastery: (13)
As of 2014-08-27 23:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (253 votes), past polls