PerlX::ifor - A version of for() that accepts iterator instead of list
This document describes version 0.001 of PerlX::ifor (from Perl distribution PerlX-ifor), released on 2019-04-16.
With Array::Iter or Range::Iter which generates a coderef iterator:
use PerlX::ifor; use Array::Iter qw(array_iter list_iter); use Range::Iter qw(range_iter); ifor { say } iter_range("a", "z");
CAVEAT: Yes, it's ugly and doesn't look like a regular for(). Sue Perl :-)
TODO: Support other iterator, e.g. Array::Iterator.
Please visit the project's homepage at https://metacpan.org/release/PerlX-ifor.
Source repository is at https://github.com/perlancar/perl-PerlX-ifor.
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=PerlX-ifor
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) 2019 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 PerlX::ifor, copy and paste the appropriate command in to your terminal.
cpanm
cpanm PerlX::ifor
CPAN shell
perl -MCPAN -e shell install PerlX::ifor
For more information on module installation, please visit the detailed CPAN module installation guide.