Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Dealing with blessed scalars when using YAML::XS::Load

by tye (Sage)
on May 01, 2012 at 23:10 UTC ( #968345=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        /* Deal with possibly blessing the hash if the YAML tag has a clas
    +s */
        if (tag && strEQ(tag, TAG_PERL_PREFIX "hash"))
    ...
            class = tag + strlen(prefix);
            sv_bless(hash_ref, gv_stashpv(class, TRUE)); 
        }
    
  2. or download this
    BEGIN {
        {
    ...
    __END__
    (java.util.notUUID=HASH(0x367c44))
    (some UUID?)
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://968345]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2018-07-18 04:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (383 votes). Check out past polls.

    Notices?