Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: hash name as a variable?

by ikegami (Patriarch)
on Sep 15, 2004 at 16:53 UTC ( [id://391241]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $db_hash = do { no strict 'refs'; \%$DB_name };
    while (($key,$value) = each %$db_hash) {
       print "\tKey   :: $key\n" ;
       print "\tValue :: $value\n" ;
    }
    
  2. or download this
    ...
    my %DBHashLookup = (
    ...
    ...
    while (($key,$value) = each %$DB_hash) {
    ...
    
  3. or download this
    $param_no = scalar @ARGV ;
    #
    ...
       print "\tValue :: $value\n" ;
    }
    #
    

Log In?
Username:
Password:

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

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

    No recent polls found