in reply to stack array to array of arrays
DB<119> @a=a..e => ("a", "b", "c", "d", "e") DB<120> map [splice @a,0,3], 0..$#a/3 => (["a", "b", "c"], ["d", "e"])
but beware of the case @a=()
> Anyone have a cool way to do this?
not really :(
Cheers Rolf
( addicted to the Perl Programming Language)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: stack array to array of arrays
by spandox (Novice) on Oct 17, 2013 at 14:18 UTC | |
by LanX (Saint) on Oct 17, 2013 at 15:17 UTC | |
by spandox (Novice) on Oct 17, 2013 at 17:43 UTC | |
by LanX (Saint) on Oct 17, 2013 at 17:57 UTC |