Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Nested Hash/Arrays Access

by Unforgiven (Hermit)
on Jul 20, 2009 at 14:50 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://781645]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (7)
As of 2024-03-28 18:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found