NAME Range::HandleIter - Generate a tied-handle iterator for range VERSION This document describes version 0.001 of Range::HandleIter (from Perl distribution Range-HandleIter), released on 2019-05-12. SYNOPSIS use Range::HandleIter qw(range_handleiter); my $iter = range_handleiter(1, 10); while (<$iter>) { ... } # 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 You can add step: my $iter = range_handleiter(1, 10, 2); # 1, 3, 5, 7, 9 You can use alphanumeric strings too since "++" has some extra builtin magic (see perlop): $iter = range_handleiter("zx", "aab"); # zx, zy, zz, aaa, aab Infinite list: $iter = range_handleiter(1, Inf); # 1, 2, 3, ... DESCRIPTION PROOF OF CONCEPT. This module offers a tied-handle-based iterator that you can use using while() and the diamond operator. It's most probably useful as a proof of concept only. FUNCTIONS range_handleiter($start, $end [ , $step ]) => filehandle HOMEPAGE Please visit the project's homepage at . SOURCE Source repository is at . BUGS Please report any bugs or feature requests on the bugtracker website 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. SEE ALSO Range::Iter Range::Iterator Range::ScalarIter, Range::ArrayIter, Range::HashIter AUTHOR perlancar COPYRIGHT AND LICENSE 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.