|
|
| Don't ask to ask, just ask | |
| PerlMonks |
Re: Re: Removing empty string elements from an Arrayby chipmunk (Parson) |
| on Feb 03, 2002 at 19:37 UTC ( #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
|
|
||||||||||||||||||||