coldy has asked for the wisdom of the Perl Monks concerning the following question:
Id like to place the values in @a everywhere accept where there is a 'y' or 'z' in @b in which case I want an 'I'@a = (0,1,5,7,9,5,3) @b = (a,b,c,y,e,f,z,a,a)
I cant think of a simple way to do it, any ideas appreciated. Thanks in advance.@new = (0,1,5,I,7,9,I,5,3)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: add elements to array at certain positions
by repellent (Priest) on Oct 30, 2008 at 04:46 UTC | |
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 | |
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 | |
|
Re: add elements to array at certain positions
by GrandFather (Saint) on Oct 30, 2008 at 04:44 UTC | |
|
Re: add elements to array at certain positions
by johngg (Canon) on Oct 30, 2008 at 15:42 UTC |