good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: pulling value based on inputby mscharrer (Hermit) |
on Sep 25, 2008 at 09:25 UTC ( [id://713607]=note: print w/replies, xml ) | Need Help?? |
Hi, please use <code> tags for your code examples and <c></c> for your inline code. Also using perltidy to tidy up your longer code is very much recommended. This makes your posts much more readable. To access the read server and location use $servers{$server} and $locs{$loc} as shown below. You can - and should - also check if the given server and location really exists, which can be done with if (exists $servers{$server}) { } etc.
In Section
Seekers of Perl Wisdom
|
|