note
Anonymous Monk
Another one that's false is a list of undefs. An array of undefs though is true.
<code>
if ( (undef,undef) ) { } # a list of undefs is false
@arr = (undef,undef);
if ( @arr ) {} # an array of undefs is true
</code>
We make use of this like so:
<code>
$_ = 'x';
if (($a,$b) = m/(.)(.)/) { }
</code>
mc0e
862
965353
3