in reply to Separating array contents
Update: some Monks have rained on my parade by noting that this may produce empty elements. :-) You can filter out empty elements with map or grep -(see below)
my $string = join( '', @mycells); my @result = split( '!', $string); # remove empty elements, using something like.... my @finalResult = grep { $_ ne '' }, @result;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Separating array contents
by choroba (Cardinal) on Jun 07, 2013 at 08:29 UTC | |
by MynameisAchint (Novice) on Jun 07, 2013 at 08:46 UTC | |
|
Re^2: Separating array contents
by MynameisAchint (Novice) on Jun 07, 2013 at 08:47 UTC |