"...I see this through benchmark..."
You might try Iterator::Simple:
#!/usr/bin/env perl use strict; use warnings; # use feature qw (say); use Iterator::Simple qw(iter); my $iterator = iter( [ 1 .. 4 ] ); while ( defined( my $i = $iterator->() ) ) { # warp action goes here }
See also Bleeding edge as well as Re^2: Useful number of childs revisited.
Regards, Karl
«The Crux of the Biscuit is the Apostrophe»
In reply to Re^3: Making program readable
by karlgoethebier
in thread Making program readable
by ravi45722
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |