15 Nov 2017 17:55:19 UTC
- Distribution: Array-Split
- Module version: 1.173190
- Source (raw)
- Browse (raw)
- How to Contribute
- Testers (642 / 0 / 0)
- KwaliteeBus factor: 2
- 100.00% Coverage
- License: unrestricted
- Activity24 month
- Download (9.57KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version++ed by:2 non-PAUSE usersMITHALDU Christian Waldeand 1 contributors
- Tomasz Konojacki (XENU)
- COPYRIGHT AND LICENSE
Array::Split - split an array into sub-arrays
use Array::Split qw( split_by split_into );
This module offers functions to separate all the elements of one array into multiple arrays.
Splits up the original array into sub-arrays containing the contents of the original. Each sub-array's size is the same or less than $split_size, with the last one usually being the one to have less if there are not enough elements in @original.
Splits the given array into even-sized (as even as maths allow) sub-arrays. It tries to create as many sub-arrays as $count indicates, but will return less if there are not enough elements in @original.
Returns a list of array references.
Christian Walde (MITHALDU) <firstname.lastname@example.org>
Tomasz Konojacki (XENU) <email@example.com>
Christian Walde has dedicated the work to the Commons by waiving all of his or her rights to the work worldwide under copyright law and all related or neighboring legal rights he or she had in the work, to the extent allowable by law.
Works under CC0 do not require attribution. When citing the work, you should not imply endorsement by the author.