Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: hash name as a variable?

by jeremyh (Beadle)
on Sep 15, 2004 at 16:07 UTC ( #391228=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my ($db, $key);
    my %DBs = ( "ISWLIVE" => { "LIVE1"  => "/usr/local/bin",
    ...
                               "LIVE2"  => "whatever" } );
    
                # etc. for all your DB's and key/values
    
  2. or download this
    foreach $db ( sort keys %DBs ) {
    
    ...
            # do whatever processing you want
        }
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (11)
As of 2014-07-29 11:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (216 votes), past polls