Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Hash of hashes

by Loops (Hermit)
on Apr 05, 2013 at 22:34 UTC ( #1027228=note: print w/ replies, xml ) Need Help??


in reply to Hash of hashes

Here's one way. A hash entry for each executable referencing a hash that contains the lettered keys which in turn reference an array of two elements, "start" and "stop:

my %data = ( 'tt.exe' => { ABC => [ 10, 4 ], def => [ 3, 2], ggg => [ 1 , 0], }, 'ww.exe' => { ABC => [ 430, 5], def => [ 33 , 10], ggg => [ 10 , 4], }, 'xx.exe' => { ABC => [ 60 , 22], def => [ 23 , 3], ggg => [ 11 , 10], }, ); $,=' '; print "start and finish :", @{$data{'ww.exe'}->{def}}, "\n";


Comment on Re: Hash of hashes
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2014-08-31 00:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (294 votes), past polls