Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: "Dynamically" Accessing a HoH

by fishbot_v2 (Chaplain)
on Jun 02, 2005 at 15:11 UTC ( [id://462948]=note: print w/replies, xml ) Need Help??


in reply to "Dynamically" Accessing a HoH

Maybe I am missing something obvious, but why wouldn't something like this work?

my @hashloc = qw{ depTar name }; my $xml = { 'depTar' => { 'name' => 'c_p20', 'loc' => 'srvr1' }}; print $xml->{ $hashloc[0] }{ $hashloc[1] };

If no, then I think that you need to give more information about what the actual user input is going to look like, and why.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (2)
As of 2024-04-20 15:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found