Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
But when i would want to prefix something, then i am ending up in collapsing the alignment.,$VAR1 = { 'a' => '1', 'b' => [ 1, 2 ] };
I would want the 'a', and 'b' to be aligned appropriately with the first line. My code is like the following,My hash-> $VAR1 = { 'a' => '1', 'b' => [ 1, 2 ] };
What should i do to make this printing properly ? What i have tried till now ? As i am not able to get a single idea about how to do this ?, Awaiting for precious response... Thanks.use Data::Dumper; $hash = { a => '1', b => [1, 2], }; print "\tMy hash-> " . Dumper $hash;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: making dumper to align perfectly
by moritz (Cardinal) on Oct 14, 2009 at 12:58 UTC | |
by Anonymous Monk on Oct 14, 2009 at 13:23 UTC | |
by moritz (Cardinal) on Oct 14, 2009 at 13:35 UTC | |
by grizzley (Chaplain) on Oct 14, 2009 at 13:37 UTC | |
|
Re: making dumper to align perfectly
by toolic (Bishop) on Oct 14, 2009 at 12:50 UTC | |
by Anonymous Monk on Oct 14, 2009 at 13:21 UTC | |
|
Re: making dumper to align perfectly
by leocharre (Priest) on Oct 14, 2009 at 14:05 UTC | |
|
Re: making dumper to align perfectly
by Anonymous Monk on Oct 14, 2009 at 15:33 UTC | |
by Bloodnok (Vicar) on Oct 14, 2009 at 15:47 UTC |