in reply to Secret Perl Operators: the boolean list squash operator, x!!
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"
>perl -le "@a = ('test') x 0; print scalar @a"
1. Keep it simple
2. Just remember to pull out 3 in the morning
3. A good puzzle will wake me up
Many. I like to torture myself
0. Socks just get in the way
Results (284 votes). Check out past polls.