Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: What is the best way to dump data structures to logfiles?

by dragonchild (Archbishop)
on Mar 13, 2007 at 18:12 UTC ( [id://604636]=note: print w/replies, xml ) Need Help??


in reply to What is the best way to dump data structures to logfiles?

One option here is DBM::Deep. It's not human-readable, but it's quite useful for transparent instantiation of Perl datastructures to disk.

My criteria for good software:
  1. Does it work?
  2. Can someone else come in, make a change, and be reasonably certain no bugs were introduced?
  • Comment on Re: What is the best way to dump data structures to logfiles?

Replies are listed 'Best First'.
Re^2: What is the best way to dump data structures to logfiles?
by monsieur_champs (Curate) on Mar 14, 2007 at 10:17 UTC

    Dear dragonchild
    Sorry, maybe I didn't explained my problem clearly. I need some kind of data structure pretty printer, so I can send some complex (and, several times, deep) perl data structures to logfiles. There is no need to being able to fetch those structures back to the system, they're only needed as a reference to operations blokes, that need to know what was wrong about the system in a given time interval.

    I really don't see how DBM::Deep can be useful for this purpose. Maybe you can explain this to me?

    Thanks a lot for your interest, anyway.

      It sounds like you need something human-readable. If that's the case, then DBM::Deep is -not- for you.

      My criteria for good software:
      1. Does it work?
      2. Can someone else come in, make a change, and be reasonably certain no bugs were introduced?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2024-04-19 21:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found