Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Respectable Monks,
Actually, This is a continuation of my earlier posting. Now with this code,
Actually, This is a continuation of my earlier posting. Now with this code,
How can I modify it to create:perl -MData::Dumper -e ' $Data::Dumper::Indent = 0; $hoa = {a => [1,2], 'b'=>[1,3], c=> [2,0]}; print Dumper $hoa; print "\n";'
Basically my intention is to make the indentation=0 only apply for the array. Thanks.$VAR1 = { 'c' => [2,0], 'a' => [1,2], 'b' => [1,3] };
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Pretty Print Dumper for Hash of Array
by svenXY (Deacon) on Sep 20, 2005 at 07:19 UTC | |
Re: Pretty Print Dumper for Hash of Array
by g0n (Priest) on Sep 20, 2005 at 09:12 UTC | |
Re: Pretty Print Dumper for Hash of Array
by davidrw (Prior) on Sep 20, 2005 at 12:46 UTC | |
Re: Pretty Print Dumper for Hash of Array
by philcrow (Priest) on Sep 20, 2005 at 12:59 UTC |
Back to
Seekers of Perl Wisdom