in reply to RE: CaptureStructure and RestoreStructure
in thread CaptureStructure and RestoreStructure

If Storable worked with multi-dimensional hashes this code would be of little value. Storable doesn't allow it, or at least it didn't want to do it for me and no one on here responded with a suggestion on how to get it to work. See "Storable.pm: Storing Multi-dimensional Hashes How?" Even Datadumper had a bug in it which made the storing of multidimensional hashes a problem; $Datadumper::quotekeys=1 is ignored after the first dimension of the hash. Fortunately, DumperX works properly but obviously this is only available on platforms with XS extensions to Datadumper. Hopefully, the author of Datadumper will find the glitch in short order.
  • Comment on RE: RE: CaptureStructure and RestoreStructure

Replies are listed 'Best First'.
RE: RE: RE: CaptureStructure and RestoreStructure
by merlyn (Sage) on Aug 11, 2000 at 15:18 UTC
    (I don't know why you made two threads on this, so I'll make two replies :)

    I've not seen problems with Storable yet, and I'm creating a monster multidimensional hash every night with my website link verifier for months now.

    Please demonstrate your problem, and we can work together to either figure out what's wrong with your code or what's wrong with Storable.

    -- Randal L. Schwartz, Perl hacker

      One reply for each side of my brain ? ;o) Anyways... I have my code RCSed, I will see if I can find an example of the problem. I tried several different functions before I finally rolled my own. I recall one of the functions was replacing hash references with '1' on restore that cut out all sorts of data: i.e. 1 instead HASH(0x4563473). I also received the error message mentioned in this thread at one point. I will work on that example... -- Robert Hardy