I haven't used YAML much, but it seems fairly straightforward and I would have assumed it has been playtested much. However, I have a configuration hash ref that saves via DumpFile (or Dump to string to file) but will not load:

Assertion ((key_node)->sv_flags & 0x00000400) failed: file "perl_libyaml.c", line 262 at /usr/local/lib64/perl5/site_perl/5.10.0/x86_64-linux-thread-multi/YAML/XS.pm line 70, <$IN> line 1.

Which to me implies this is the first line of input.

Right now I don't see the point in throwing the whole hash construction up, since there is nothing wrong with that. Googling, I got no hits at all for this error (but also next to nothing about YAML::XS anyway, and the POD stuff is absurdly skimpy). So I am wondering if anyone knows anything about this -- since otherwise, I have nothing invested here and would just as soon use something else as fuss with something that should be pretty gosh darn simple (save/retrieve a 1000 byte hash of arrays and strings, etc).


In reply to YAML::XS Load/LoadFile error by halfcountplus

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.