in reply to dumping a hash
For example, using your sample above:
prints..use Data::Dumper; my %hash = ( this => "one", that => "two", ); print Dumper(\%hash);
But using Data::Dumper::Simple...$VAR1 = { 'that' => 'two', 'this' => 'one' };
prints...use Data::Dumper::Simple; my %hash = ( this => "one", that => "two", ); print Dumper(%hash);
%hash = ( 'that' => 'two', 'this' => 'one' );
Notice two things:
One thing you should be aware of is that Data::Dumper::Simple uses source filtering techniques (which is probably why many people refuse to use it). Personally, this doesn't bother me as I only ever use it for debugging.
Cheers,
Darren :)
|
|---|