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...


In reply to Re: Converting from Storable to YAML by Your Mother
in thread Converting from Storable to YAML by raybies

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.