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

Re: Nested Hash/Arrays Access

by Unforgiven (Hermit)
on Jul 20, 2009 at 14:50 UTC ( #781645=note: print w/replies, xml ) Need Help??


in reply to Nested Hash/Arrays Access

Maybe I'm just misreading, but why not store it in a flatter sort of data structure in the first place? It'd probably be much easier to work with. Something like:
my %server = ( name => "SomeServer", pid => 8328, fd => "Some FD", lsof => [ <some array here> ], );
You then could just have an array of these server hashes. Not quite what you were asking for, I know, but better to avoid a problem entirely than to solve it, I think.

Note: Edited to fix typo, after being notified by AnomalousMonk (thanks!).

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (3)
As of 2020-10-22 15:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (227 votes). Check out past polls.

    Notices?