in reply to Difficulty saving PDL's to disk with Data::dumper
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Difficulty saving PDL's to disk with Data::dumper
by Chah (Initiate) on Mar 01, 2009 at 13:39 UTC |