http://www.perlmonks.org?node_id=1040810


in reply to decimal numbers as hash keys

Hi,

To add to the post above, a simple use of Data::Dumper highlights the issue

use strict; use warnings; use autodie; #these 3 above are a must -have use Data::Dumper; my %ifac= ( 14.152 => "JCI", 9.334 => "JHEP", 5.745 => "JIMM", 6.270 => "JID", 1.480 => "JRN", 6.105 => "KI" ); print Dumper(\%ifac);

displays:

$VAR1 = { '6.105' => 'KI', '1.48' => 'JRN', '9.334' => 'JHEP', '5.745' => 'JIMM', '6.27' => 'JID', '14.152' => 'JCI' };

Cheers

Arnaud