Perlseeker_1 has asked for the wisdom of the Perl Monks concerning the following question:
Need help on printing data from hashes
I have stored the sum of values in a hash as shown below
hash output
'1' => { 'Val1' => '13.12' }, '2' => { 'Val1' => '6' }, '3' => { 'Val1' => '2' }, '4' => { 'Val1' => '15.52' } };
I am expecting output as below
Total 36.64
please let me know the syntax
Thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Hashes - perl
by toolic (Bishop) on Oct 19, 2013 at 20:26 UTC | |
|
Re: Hashes - perl
by aitap (Curate) on Oct 19, 2013 at 21:43 UTC | |
|
Re: Hashes - perl
by NetWallah (Canon) on Oct 19, 2013 at 20:48 UTC | |
by AnomalousMonk (Archbishop) on Oct 19, 2013 at 23:50 UTC |