in reply to Re: Re: Is this logic valid?
in thread Is this logic valid?
(If you're cool with $_, you can leave out $currentkey in that incantation.) I can't figure out exactly what you want in the comparison, though. $hash{$currentkey} will give you the value associated with the key currently in consideration. To get the hash value for another value, you can use $hash{'key_name'} if you are referring directly to a string value for the key, or $hash{$value1} if the variable $value1 contains the name of that key.foreach $currentkey (keys %hash) { }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Is this logic valid?
by wstarrs (Acolyte) on May 15, 2001 at 21:56 UTC |