You neglected to also look at the any predicate or its overworking cousin grep. Or perhaps Perl 6's any() disjunction or its (forward in history) "backport" any() from Quantum::Superpositions.
my $chr = $_; # Naughty, naughty! You used $_ before but I need it now +. any { $chr eq $_ } qw( a b c ); grep { $chr eq $_ } qw( a b c );
⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊
In reply to Re: Collapsing repetitive equality tests: || vs {} vs // (an observation)
by diotalevi
in thread Collapsing repetitive equality tests: || vs {} vs // (an observation)
by blogical
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |