Oh I think I missed the problem in your earlier post... I was confused as to why on earth you would want to unpack() the data you just froze...

In any case your original question stated: "How do I thaw and retrieve data from a 'Sorable file'". Well, you use store() and retrieve(). That's why I replied to rtfm, cause it looked like you were trying to thaw it with some pack()/unpack() magic...

But upon examining your code, I see that it has nothing to do with Storable, but a simple error...

In your original post, you freeze a ref to a hash, and then when you thaw, you try to dereference it to an array.... that's all there is to it.

In any case, I don't think you really should be doing this pack unpack stuff unless there's some reason you just cannot use store/nstore and retrieve


And you might want to lose the atitude when somebody is pointing an obvious flaw in your code, even if that doesn't solve your problems immediately. In the long run, it will be better if you listen to these details.


In reply to Re: Revised: Storable data retrieval by lestrrat
in thread Revised: Storable data retrieval by david.jackson

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.