P is for Practical | |
PerlMonks |
Re: Re: Removing empty string elements from an Arrayby chipmunk (Parson) |
on Feb 03, 2002 at 19:37 UTC ( [id://143094]=note: print w/replies, xml ) | Need Help?? |
Aside from the issue of readability, which is obviously subjective, this solution will drop any occurences of '0' from the array. A more explicit check is necessary, as in the earlier grep solutions:
(Personally, I also prefer grep to solve this problem.)
In Section
Seekers of Perl Wisdom
|
|