nat47 has asked for the wisdom of the Perl Monks concerning the following question:
This is how I tried to remove it, and it didn't work:$VAR1 = 'stuff'; $VAR2 = ''; $VAR3 = 'stuff'; $VAR4 = ''; $VAR5 = '10'; $VAR6 = ''; $VAR7 = '-'; $VAR8 = '';
do { $a_counter = 0; foreach my $x(@left_split) { if($x eq '') { splice @left_split, $a_counter-1, 1; $bool = 1; last; } } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Unable to remove items from an array that are empty ' '
by choroba (Cardinal) on Apr 25, 2015 at 21:14 UTC | |
|
Re: Unable to remove items from an array that are empty ' '
by toolic (Bishop) on Apr 25, 2015 at 21:18 UTC | |
|
Re: Unable to remove items from an array that are empty ' '
by davido (Cardinal) on Apr 25, 2015 at 22:07 UTC |