or, more generally the equivalent to !!$expr is (some of the parens are optional depending on context):return grep($_ eq $_[0], @_[ 1 .. $#_ ]) ? 1 : '';
(($expr)?1:'')
In reply to Re^2: Perl Idioms Explained - !!expr
by davidrw
in thread Perl Idioms Explained - !!expr
by broquaint
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |