in reply to Dump using Dumper

You can manipulate the formatting of Data::Dumper's output. It may not be exactly the format you're wanting though, but it may be closer than the default is. The POD for that module explains how to:

Update: Here is an example of how close you can get with Data::Dumper:

use strict; use warnings; use Data::Dumper; my %hash = qw/this 1 that 2 those 3 them 4/; $Data::Dumper::Terse++; $Data::Dumper::Quotekeys = 0; $Data::Dumper::Indent = 1; print Dumper \%hash; __OUTPUT__ { those => '3', them => '4', that => '2', this => '1' }

Without the formatting overrides, here is what you would have gotten:

$VAR1 = { 'those' => '3', 'them' => '4', 'that' => '2', 'this' => '1' };


Dave