freestyling has asked for the wisdom of the Perl Monks concerning the following question:
I get told by perl to replace == with eq but when I do that the comparison no longer works, and returns false everytime. What am I doing wrong??foreach $member (@ops) { if ($member == $who) { $op = 1; last; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: == works where it shouldn't but eq doesn't where it should
by Corion (Patriarch) on Jan 15, 2006 at 22:21 UTC | |
by wolv (Pilgrim) on Jan 16, 2006 at 20:51 UTC | |
|
Re: == works where it shouldn't but eq doesn't where it should
by brian_d_foy (Abbot) on Jan 15, 2006 at 22:42 UTC | |
|
Re: == works where it shouldn't but eq doesn't where it should
by helphand (Pilgrim) on Jan 15, 2006 at 22:20 UTC | |
|
Re: == works where it shouldn't but eq doesn't where it should
by jZed (Prior) on Jan 15, 2006 at 22:25 UTC | |
|
Re: == works where it shouldn't but eq doesn't where it should
by Errto (Vicar) on Jan 16, 2006 at 00:53 UTC | |
|
Re: == works where it shouldn't but eq doesn't where it should
by tweetiepooh (Hermit) on Jan 16, 2006 at 11:08 UTC |