Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Rosetta code: Split an array into chunksby karlgoethebier (Abbot) |
on Oct 23, 2021 at 17:06 UTC ( [id://11137917]=note: print w/replies, xml ) | Need Help?? |
Stolen from brother BUK, our beloved former leader: print splice @a, 0, 5 for 1 .. 5; It rhymes somehow again! Not tested but I guess it works. I’m still on a mobile device and in a hurry. See also Generate a # between 1 and 50 in groups of 5 as well as the sources of List::MoreUtils::PP:
Best regards, Karl «The Crux of the Biscuit is the Apostrophe»
In Section
Meditations
|
|