Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Multidimentional hash

by hdb (Prior)
on Jul 01, 2013 at 16:00 UTC ( #1041881=note: print w/ replies, xml ) Need Help??


in reply to Multidimentional hash

If you are looking for comments, how to create a multi-dimensional structure, the following might give you a start. With all these nested structures, Data::Dumper is an invaluable tool to inspect them.

use strict; use warnings; use Data::Dumper; my %metals; $metals{'LB'}{'LENGTH_RANGES'} = [ 0, 10 ]; $metals{'LB'}{'WIDTH_RANGES'} = [ 0, 1.080 ]; $metals{'LB'}{'EM_POLY'} = "(-0.665364 + (9.6216 * W))*(10/L)"; print Dumper \%metals;


Comment on Re: Multidimentional hash
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2015-07-05 13:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (67 votes), past polls