in reply to Can If-then conditions do ($a = $b = $c) type expressions?
How about:
if (not grep {$a!=$_} ($b, $c)) { ... }
Note that if you want a string comparison, replace != with ne.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Can If-then conditions do ($a = $b = $c) type expressions?
by admiralh (Sexton) on Apr 26, 2002 at 04:43 UTC | |
by premchai21 (Curate) on Apr 26, 2002 at 07:10 UTC |
In Section
Seekers of Perl Wisdom