in reply to Re: brian's Guide to Solving Any Perl Problem
in thread brian's Guide to Solving Any Perl Problem

use YAML; print Dump(...), but that requires actually installing YAML first.

You might try installing Data::Dump::Streamer (along with the DDS alias.) Then its just use DDS; Dump(...); :-) Its a Data::Dumper replacement (not drop in) which does a more or less breadth first dump of your data so its usually a lot easier to read, especially for cyclic and selfreferential data structures.

---
demerphq

Replies are listed 'Best First'.
Re^3: brian's Guide to Solving Any Perl Problem
by Anonymous Monk on Feb 07, 2005 at 16:29 UTC
    use YAML; print Dump(...), but that requires actually installing YAML first.
    You might try installing Data::Dump::Streamer (along with the DDS alias.)
    So, your suggestion to sfink's drawback of having to install a module is to install a module?

      No, I misquoted, i meant to emphasize

      And I'm still not nearly as used to the YAML format as I am to Data::Dumper format.

      My point was that if you are going to install a module for better dumping you might as well install one that is easier to read. Of course honesty demands I point out that DDS requires XS and is quite slow (and doesnt build under one of the early 5.8 series, i think 5.8.0)

      ---
      demerphq