Chon-Ji has asked for the wisdom of the Perl Monks concerning the following question:
What I want to do is get a subset of the array containg all the strings that have the substring "102" in them. In this case: the new array would containx101032 x101822 x101209 x102292 x101302 x102938 x102943 x101289
One approach is to use a for/while loop, but is there a much efficient way to do this? thanks.x102292 x102938 x102943
Code tags and formatting added by holli
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Array manipulation
by GrandFather (Saint) on May 30, 2006 at 06:52 UTC | |
|
Re: Array manipulation
by l.frankline (Hermit) on May 30, 2006 at 06:59 UTC | |
|
Re: Array manipulation
by Chon-Ji (Novice) on May 30, 2006 at 07:13 UTC | |
by friedo (Prior) on May 30, 2006 at 07:22 UTC | |
by Chon-Ji (Novice) on May 30, 2006 at 08:09 UTC | |
by lima1 (Curate) on May 30, 2006 at 08:30 UTC | |
by davido (Cardinal) on May 30, 2006 at 15:31 UTC |