Problems? Is your data what you think it is? | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
This routine splits a list into more than one list. giving us:
If you want to pad the end of uneven arrays place the padding as the third argument my $arr_of_arr = split_list( [ 1 .. 7 ], 3, undef ); which gives:
A note of caution: The original array is left intact. If split_list is used on large arrays you could run out of memory before this task completes. Update:Changed title to mention unmerge. Thanks, belg4mit
In reply to List Splitter / Unmerge List by CharlesClarkson
|
|