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

Re: "Dynamically" Accessing a HoH

by fishbot_v2 (Chaplain)
on Jun 02, 2005 at 15:11 UTC ( #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
Node Status?
node history
Node Type: note [id://462948]
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: (3)
As of 2021-06-23 18:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What does the "s" stand for in "perls"? (Whence perls)












    Results (121 votes). Check out past polls.

    Notices?