Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^7: more fun w/ HASh ref's

by hesco (Deacon)
on Nov 27, 2005 at 02:07 UTC ( [id://511971]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    print STDERR "|$host|, |$db|, |$user|, |$pw|";
    
  2. or download this
    my ($key, $val) = split(/\s*=\s*/,$_,2);
    $key =~ s/^\s*//;
    $val =~ s/ *$//g;  # also tried \s* and \S*, as well 
    $config{'db'}{"$key"} = $val;
    $config{"$key"} = $val;
    

Log In?
Username:
Password:

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

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

    No recent polls found