Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Null in Arrayby mpd (Monk) |
on Jul 29, 2003 at 02:22 UTC ( [id://278698]=note: print w/replies, xml ) | Need Help?? |
Checking the length seems to be a waste. Just test the variable directly w/ a regexp. I might do something closer to:
NB: TMTOWTDI. Code is untested. Regexp used may not be correct, but it's tough to tell without context.
In Section
Seekers of Perl Wisdom
|
|