Sub::Iterator - Generate iterator coderefs
This document describes version 0.01 of Sub::Iterator (from Perl distribution Sub-Iterator), released on 2015-01-17.
use Sub::Iterator qw(gen_array_iterator gen_fh_iterator); my $sub = gen_array_iterator([1, 2, 3]); $sub->(); # -> 1 $sub->(); # -> 2 $sub->(); # -> 3 $sub->(); # -> undef
Please visit the project's homepage at https://metacpan.org/release/Sub-Iterator.
Source repository is at https://github.com/perlancar/perl-Sub-Iterator.
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=Sub-Iterator
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.
perlancar <perlancar@cpan.org>
This software is copyright (c) 2015 by 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.
To install Sub::Iterator, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Sub::Iterator
CPAN shell
perl -MCPAN -e shell install Sub::Iterator
For more information on module installation, please visit the detailed CPAN module installation guide.