The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Sub::Iterator - Generate iterator coderefs

VERSION

This document describes version 0.01 of Sub::Iterator (from Perl distribution Sub-Iterator), released on 2015-01-17.

SYNOPSIS

 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

FUNCTIONS

gen_array_iterator(\@ary) -> code

gen_fh_iterator($fh) -> code

HOMEPAGE

Please visit the project's homepage at https://metacpan.org/release/Sub-Iterator.

SOURCE

Source repository is at https://github.com/perlancar/perl-Sub-Iterator.

BUGS

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.

AUTHOR

perlancar <perlancar@cpan.org>

COPYRIGHT AND LICENSE

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.