Beefy Boxes and Bandwidth Generously Provided by pair Networks Cowboy Neal with Hat
more useful options
 
PerlMonks  

Re: decimal numbers as hash keys

by arnaud99 (Beadle)
on Jun 26, 2013 at 15:51 UTC ( #1040810=note: print w/ replies, xml ) Need Help??


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


Comment on Re: decimal numbers as hash keys
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1040810]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2014-04-17 04:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (439 votes), past polls