Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

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

by demerphq (Chancellor)
on Feb 07, 2005 at 15:19 UTC ( [id://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

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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2025-06-15 12:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.