in reply to add elements to array at certain positions
my $i = 0; my @new = map { /^[yz]$/ ? 'I' : $a[$i++] } @b;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: add elements to array at certain positions
by coldy (Scribe) on Oct 30, 2008 at 05:19 UTC | |
by GrandFather (Saint) on Oct 30, 2008 at 05:43 UTC | |
by ikegami (Patriarch) on Oct 30, 2008 at 08:54 UTC | |
|
Re^2: add elements to array at certain positions
by juster (Friar) on Oct 30, 2008 at 06:49 UTC | |
by GrandFather (Saint) on Oct 30, 2008 at 06:55 UTC | |
by juster (Friar) on Oct 30, 2008 at 16:56 UTC |