How about:
if (not grep {$a!=$_} ($b, $c)) { ... }
Note that if you want a string comparison, replace != with ne.
In reply to Re: Can If-then conditions do ($a = $b = $c) type expressions?
by premchai21
in thread Can If-then conditions do ($a = $b = $c) type expressions?
by snafu
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |