in reply to How to sort Hashes of Hashes and print results in a file
For example, given
use Data::Dumper; my %hash = ( 9 => { 11 => '54.9503577512828', 21 => '40.4544882398113', }, 4 => { 11 => '26.7647206436788', 21 => '19.4128184125387', } );
print Dumper %hash yields
$VAR1 = '4'; $VAR2 = { '11' => '26.7647206436788', '21' => '19.4128184125387' }; $VAR3 = '9'; $VAR4 = { '11' => '54.9503577512828', '21' => '40.4544882398113' };
but print Dumper \%hash (note the backslash) produces
$VAR1 = { '4' => { '11' => '26.7647206436788', '21' => '19.4128184125387' }, '9' => { '11' => '54.9503577512828', '21' => '40.4544882398113' } };
|
|---|