Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Converting from Storable to YAML

by Your Mother (Archbishop)
on Jan 21, 2011 at 21:38 UTC ( [id://883620]=note: print w/replies, xml ) Need Help??


in reply to Converting from Storable to YAML

Probably you want YAML::XS (it's supposed to be the most correct). About 50/50 I have been using the vanilla variety (YAML) without problems. DumpFile and LoadFile are store and retrieve. The docs are good-

my $yaml = Dump [ 1..4 ]; my $array = Load $yaml; # This module exports the functions "Dump", "Load", # "DumpFile" and "LoadFile". These functions are # intended to work exactly like "YAML.pm"'s # corresponding functions.

Storable is a *fine* module. YAML is just easier to introspect and tweak for a human. If you don't have a compelling reason to switch, don't do it just in the name of fashion. Well, learning something new is always good too so...

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://883620]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2024-04-24 09:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found