Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

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

by Khen1950fx (Canon)
on May 02, 2012 at 05:28 UTC ( #968356=note: print w/replies, xml ) Need Help??


in reply to Dealing with blessed scalars when using YAML::XS::Load

Maybe using YAML::Dumper would help?
#!/usr/bin/perl use strict; use warnings; use YAML::XS; use YAML::Dumper; my $ref = YAML::XS::Load(join('',<DATA>)); my $dumper = YAML::Dumper->new; print $dumper->dump($$ref{'fooUuid'}); print $dumper->dump(ref $$ref{'fooUuid'}); __DATA__ --- fooUuid: !java.util.UUID 39809f4e-93b9-11e1-89b4-db41381ff4b7

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2016-12-11 03:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (168 votes). Check out past polls.