hotshot has asked for the wisdom of the Perl Monks concerning the following question:
on $hash which it's value's are YES or NO (all capital), I get all the values (after the loop) to be NO (all capital) no matter if I had YES values (and it's also 'NO' and not 'No'). Can someone tell me what the hell is going on here?for (values(%{$hash})) { /yes/i ? $_ = 'Yes' : $_ = 'No'; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: if condition problem
by fglock (Vicar) on Sep 19, 2002 at 17:45 UTC | |
|
Re: if condition problem
by Django (Pilgrim) on Sep 19, 2002 at 18:32 UTC | |
|
Re: if condition problem
by Nemp (Pilgrim) on Sep 19, 2002 at 17:47 UTC | |
|
Re: if condition problem
by sauoq (Abbot) on Sep 19, 2002 at 20:19 UTC |