No such thing as a small change | |
PerlMonks |
Re: no grep match returns undefined?by kvale (Monsignor) |
on Sep 05, 2002 at 16:18 UTC ( [id://195428]=note: print w/replies, xml ) | Need Help?? |
grep returns an array of matched elements. So if there are no
matches, then the first array element is undefined. A better
way would be
-Mark
In Section
Seekers of Perl Wisdom
|
|