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 radiantmatrix (Parson)
on Mar 14, 2007 at 20:13 UTC ( #604884=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # assumes-> use File::Temp ':POSIX'; for tempnam()
    # assumes-> use YAML 'Dump'; (or) use YAML::Syck 'Dump'; for Dump()
    ...
        
        $message.=sprintf '(%d dumped to "%s")', $structures, $dump_n;
    }
    
  2. or download this
    $logger->fatal( dump('Unable to foo, dumping object $foo_doer.', $foo_
    +doer) );
    
  3. or download this
    20070314 15:09 FATAL: Unable to foo, dumping object $foo_doer.(1 dumpe
    +d to "dump.foobar1")
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2016-06-29 23:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (388 votes). Check out past polls.