Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^2: brian's Guide to Solving Any Perl Problem

by demerphq (Chancellor)
on Feb 07, 2005 at 15:19 UTC ( #428689=note: print w/ replies, xml ) Need Help??


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


Comment on Re^2: brian's Guide to Solving Any Perl Problem
Download Code
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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://428689]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (10)
As of 2015-07-03 10:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (51 votes), past polls