Spliter has asked for the wisdom of the Perl Monks concerning the following question:
I want to be able to find the empty elements in an array because I know the array I am generating will have empty elements. When I say empty elemts I mean if I print out all the elements in the array at the promt I get this:
How do I write a loop that will find these empty string elements? Then, how do I remove them from the array once I have found them?e1 e2 <--- this is an empty string element e3 <--- this is another e4
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Removing empty string elements from an Array
by Masem (Monsignor) on Nov 13, 2001 at 06:01 UTC | |
by ar0n (Priest) on Nov 13, 2001 at 07:44 UTC | |
by Abbot Michael (Initiate) on Mar 08, 2019 at 15:35 UTC | |
Re: Removing empty string elements from an Array
by Bobcat (Scribe) on Nov 13, 2001 at 06:24 UTC | |
by chipmunk (Parson) on Feb 03, 2002 at 19:37 UTC | |
by traisjames (Initiate) on Apr 04, 2016 at 06:44 UTC | |
by chip (Curate) on Nov 13, 2001 at 10:16 UTC | |
by Bobcat (Scribe) on Feb 03, 2002 at 18:28 UTC | |
Re: Removing empty string elements from an Array
by broquaint (Abbot) on Nov 13, 2001 at 15:32 UTC |
Back to
Seekers of Perl Wisdom