Jeff 'japhy' Pinyan <[EMAIL PROTECTED]> writes:
>I'm trying to write an XS module that will allow people to move forward
>(or backward) within a for(each) loop. The canonical example would be:
>
> my @data = (1 .. 10) {
>
> for (@data) {
>my $next = For::next_iter();
>print "$_, $next\n"
I'm trying to write an XS module that will allow people to move forward
(or backward) within a for(each) loop. The canonical example would be:
my @data = (1 .. 10) {
for (@data) {
my $next = For::next_iter();
print "$_, $next\n";
}
And the output would be
1, 2
3, 4
5, 6
7