http://www.perlmonks.org?node_id=374289


in reply to Perl Idioms Explained - !!expr

Can you comment on the alternatives?

return grep { $_ eq $_[0] } @_[ 1 .. $#_ ]; # or return ~~grep { $_ eq $_[0] } @_[ 1 .. $#_ ]; # or my $searched = shift; return !!grep { $_ eq $earched } @_;

Should I use them? And if not, why?

Thanks