Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: Unexpected Outputby Your Mother (Archbishop) |
on Jul 28, 2010 at 16:21 UTC ( [id://851745]=note: print w/replies, xml ) | Need Help?? |
Please use the $string = @arr ? 'False' : 'True'; idiom cdarke offered. $#arr is (so I say) a poor style choice to use anywhere (in general) and both confusing and potentially error prone here (as nvivek notes).
In Section
Seekers of Perl Wisdom
|
|