in reply to IF and some conditions

In perl 6, Junctions are a core language feature.

So, you could write:

say "OK" if ($test == any(7,5,3));

Thankfully someone has already implemented them for Perl 5, with the module on CPAN called Perl6::Junctions;

use Perl6::Junctions qw(any); print "OK\n" if ($test == any(7,5,3));

This is actually very similar to the Quantum::Superpositions answer above, and I believe the implementations share a common root.

$h=$ENV{HOME};my@q=split/\n\n/,`cat $h/.quotes`;$s="$h/." ."signature";$t=`cat $s`;print$t,"\n",$q[rand($#q)],"\n";