Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: How do I...Conditional hash value

by myocom (Deacon)
on Jul 26, 2002 at 22:20 UTC ( [id://185685]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my %required;
    $required{path} = ($ENV{HTTP_HOST} eq 'www.shrum.net') ? 
                      'g:/websites/shrum.net/' : 'd:/users/http/html/';
    
  2. or download this
    my %required;
    if ($ENV{HTTP_HOST} eq 'www.shrum.net') { # We now know which 
    ...
        $required{path}         = 'd:/users/http/html/';
        $required{someotherkey} = 'some different string';
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (3)
As of 2024-03-19 02:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found