Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Please advise me oh wise monks.
All I want to do is crunch down an array to a specific number of elements. I could do it with a foreach loop with the extra array, but I really don't want to do a foreach loop as I know there's a better way.
Maybe someone will suggest splice and show an example?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: merging arrays
by GrandFather (Saint) on Jun 24, 2006 at 03:55 UTC | |
by Anonymous Monk on Jun 24, 2006 at 04:49 UTC | |
by GrandFather (Saint) on Jun 24, 2006 at 04:58 UTC | |
by shmem (Chancellor) on Jun 24, 2006 at 11:52 UTC | |
|
Re: merging arrays
by Samy_rio (Vicar) on Jun 24, 2006 at 03:59 UTC | |
by chromatic (Archbishop) on Jun 24, 2006 at 07:00 UTC | |
|
Re: merging arrays
by sfink (Deacon) on Jun 24, 2006 at 17:40 UTC | |
by ikegami (Patriarch) on Jun 24, 2006 at 17:50 UTC |