Item Description: takes a variable ( or reference to a variable) and 'unrolls' or dumps it out for inspection
Review Synopsis: invaluable for object design and debugging complicated data structure
Data::Dumper is in the standard Perl distribution. it's probably the easiest module to use, just issue a 'use Data::Dumper' call, and then either print to STDOUT ( with 'print Dumper \@foo ') or stick into some html used by an application ( i prefer to wrap it in <pre> tags, so the output isn't mangled.) Data::Dumper also works keenly with objects, and gives you the class into which your variable is blessed. (with makes debugging object relations really quick.)
|
---|
Replies are listed 'Best First'. | |
---|---|
RE (tilly) 1: Data::Dumper
by tilly (Archbishop) on Sep 11, 2000 at 03:42 UTC | |
RE: Data::Dumper (Adam: Sample Usage)
by Adam (Vicar) on Oct 27, 2000 at 23:00 UTC | |
by dkubb (Deacon) on Jan 18, 2001 at 06:24 UTC | |
RE: Data::Dumper
by Anonymous Monk on Nov 10, 2000 at 06:51 UTC | |
RE: Data::Dumper
by lachoy (Parson) on Oct 18, 2000 at 03:13 UTC | |
by princepawn (Parson) on Oct 18, 2000 at 23:30 UTC | |
by premchai21 (Curate) on May 07, 2001 at 21:07 UTC | |
Re: Data::Dumper
by premchai21 (Curate) on May 07, 2001 at 21:10 UTC | |
by Anonymous Monk on Jun 09, 2004 at 20:15 UTC |