go ahead... be a heretic | |
PerlMonks |
Re^4: IF and GREP Questionby jwkrahn (Abbot) |
on Sep 18, 2013 at 06:10 UTC ( [id://1054590]=note: print w/replies, xml ) | Need Help?? |
"if ()" imposes a scalar context. Actually it imposes a boolean context, which is basically the same as scalar context. "if (@found)" sees undef or zero An array in boolean context cannot be undef. In fact, defined doesn't work with arrays anymore.
In Section
Seekers of Perl Wisdom
|
|