Two people have already done
scalar x!! $cond
but the parens are required
( scalar ) x!! $cond
>perl -le "@a = 'test' x 0; print scalar @a" 1 >perl -le "@a = ('test') x 0; print scalar @a" 0
In reply to Re: Secret Perl Operators: the boolean list squash operator, x!!
by ikegami
in thread Secret Perl Operators: the boolean list squash operator, x!!
by Aristotle
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |