anshumangoyal has asked for the wisdom of the Perl Monks concerning the following question:
I have a hash which has around 20 Key Value Pairs. I want to print these values in a file and on screen in such a way that the indentation is not lost. I want to print it in mysql query output format. The Keys will be name of parameter and below it the value of the key has to be printed. I tried with sprintf but it's not a success. The keys length are different and so it he value length. What is the best possible solution?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Printing an Hash
by BillKSmith (Monsignor) on Aug 01, 2012 at 16:01 UTC | |
by frozenwithjoy (Priest) on Aug 01, 2012 at 23:30 UTC | |
Re: Printing an Hash
by blue_cowdawg (Monsignor) on Aug 01, 2012 at 17:57 UTC | |
Re: Printing an Hash
by suaveant (Parson) on Aug 01, 2012 at 14:53 UTC | |
Re: Printing an Hash
by Rudolf (Pilgrim) on Aug 01, 2012 at 15:37 UTC |
Back to
Seekers of Perl Wisdom