Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2016-10-01 03:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (574 votes). Check out past polls.