Perhaps you should post the code used to create this structure? Most likely you are not creating the data structure you think you are, but without the code used to create the PDL's and the data structure there is no way to know.

Also it might help to come up with a small code sample that shows the problem by (a) creating a small portion of the structure with just one PDL and (b) showing how you call Data::Dumper to output the structure. The output would be less overwhelming and help us and you focus on the problem. The process of creating the code sample might even solve it for you without waiting for our help!

A further thought: since there may be a lot of code and data involved here, perhaps you might want to enclose your code and output in <readmore>....</readmore> tags? Those interested in helping you will read more and you will be less likely to lose people who could help but can't see the forest for the trees. Some people will just skim past something where the detail and main idea aren't clearly separated out from each other.

Best, beth

Update: After looking at the PDL source code (I assume you mean this PDL?), it also appears that the "PDL" class is merely a wrapper around a C pointer, in which case Data::Dumper is merely printing out a pointer address that will have no meaning on reload - hence your segmentation fault when you try to reload it.


In reply to Re: Difficulty saving PDL's to disk with Data::dumper by ELISHEVA
in thread Difficulty saving PDL's to disk with Data::dumper by Chah

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.