Nicpetbio23! has asked for the wisdom of the Perl Monks concerning the following question:
If $value1 is equal to $key I want to print "$key1:$value1:$value\n" Why doesn't this work?%out : $key, $value %ret : $key1, $value1
if ( $ret{$value1} eq $out{$key} ){ print "$ret{$key1}:$ret{$value1}:$out{$value}\n"; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Hash issues
by choroba (Cardinal) on Jul 26, 2017 at 21:56 UTC | |
Re: Hash issues
by huck (Prior) on Jul 26, 2017 at 21:51 UTC | |
Re: Hash issues
by roboticus (Chancellor) on Jul 26, 2017 at 22:06 UTC |