Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
i have an array from which i would like to put the every 5th element to another array.
how can this be done.
example
myarray (1,2,3,4,5,6,7,8,sd,frd,sed,sddfsd,asecf,ssdd,myh)
i want sub array like (5,frd,myh)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: how to push 5th element from one array to another array
by ctilmes (Vicar) on Oct 27, 2009 at 20:14 UTC | |
Re: how to push 5th element from one array to another array
by ikegami (Patriarch) on Oct 27, 2009 at 20:46 UTC | |
Re: how to push 5th element from one array to another array
by jettero (Monsignor) on Oct 27, 2009 at 20:11 UTC | |
Re: how to push 5th element from one array to another array
by gmargo (Hermit) on Oct 27, 2009 at 20:14 UTC | |
Re: how to push 5th element from one array to another array
by merlyn (Sage) on Oct 27, 2009 at 20:23 UTC | |
by ikegami (Patriarch) on Oct 27, 2009 at 20:50 UTC | |
Re: how to push 5th element from one array to another array
by NetWallah (Canon) on Oct 28, 2009 at 00:31 UTC | |
by gmargo (Hermit) on Oct 28, 2009 at 02:29 UTC |
Back to
Seekers of Perl Wisdom