http://qs1969.pair.com?node_id=162028


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.