NAME
partition-zip - Partition input into N partitions, then zip
VERSION
This document describes version 0.001 of partition-zip (from Perl distribution App-PartitionUtils), released on 2026-08-25.
SYNOPSIS
% partition-zip [options] [input ...]
Examples:
Given this input:
1
2
3
4
5
6
7
8
9
10
11
12
This:
% partition-zip -n2 < INPUT
will give:
1 7
2 8
3 9
4 10
5 11
6 12
which can also be done using something like:
% paste <(head -n 6 INPUT) <(tail -n 6 INPUT)
while this:
% partition-zip -n3 -s'|' < INPUT
will give:
1|5|9
2|6|10
3|7|11
4|8|12
and this:
% partition-zip -n5 -s, < INPUT
will give:
1|4|7|9|11
2|5|8|10|12
3|6
DESCRIPTION
HOMEPAGE
Please visit the project's homepage at https://metacpan.org/release/App-PartitionUtils.
SOURCE
Source repository is at https://github.com/perlancar/perl-App-PartitionUtils.
SEE ALSO
AUTHOR
perlancar <perlancar@cpan.org>
CONTRIBUTING
To contribute, you can send patches by email/via RT, or send pull requests on GitHub.
Most of the time, you don't need to build the distribution yourself. You can simply modify the code, then test via:
% prove -l
If you want to build the distribution (e.g. to try to install it locally on your system), you can install Dist::Zilla, Dist::Zilla::PluginBundle::Author::PERLANCAR, Pod::Weaver::PluginBundle::Author::PERLANCAR, and sometimes one or two other Dist::Zilla- and/or Pod::Weaver plugins. Any additional steps required beyond that are considered a bug and can be reported to me.
COPYRIGHT AND LICENSE
This software is copyright (c) 2026 by perlancar <perlancar@cpan.org>.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
BUGS
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=App-PartitionUtils
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.