http://www.perlmonks.org?node_id=490423


in reply to Pretty Printing with Data::Dumper

$Data::Dumper::Indent = 0;

You also might want to try my Data::Dumper::Simple. I would only advise it for debugging (not production), but it has the nice effect of printing the variable name(s).

Cheers,
Ovid

New address of my CGI Course.

Replies are listed 'Best First'.
Re^2: Pretty Printing with Data::Dumper
by biosysadmin (Deacon) on Sep 09, 2005 at 07:43 UTC
    While I'm not its author, I also recommend Data::Dumper::Simple. It's a very nice tool that saves you the mental hassle of wondering what the heck $VAR1 really was. It's also a drop-in replacement for Data::Dumper, meaning that you can just change use Data::Dumper to use Data::Dumper::Simple.

    Thanks for the tool Ovid. :)