Acme-Loopy
view release on metacpan or search on metacpan
NAME
Acme::Loopy - loop keyword
SYNOPSIS
loop {
my @row = get_data() or last;
# First iteration only
print table_headers(\@row) unless ${^LOOP};
# All iterations
print table_row(\@row);
}
DESCRIPTION
This is really just a test/experiment with Keyword::Simple. It gives you a
keyword `loop` which acts like a while(1) loop - that is, it loops
infinitely until an explicit `last`. This is quite similar to ikegami's
Syntax::Feature::Loop.
Within the loop, the variable `${^LOOP}` can be used to obtain the current
lib/Acme/Loopy.pm view on Meta::CPAN
Acme::Loopy - loop keyword
=head1 SYNOPSIS
loop {
my @row = get_data() or last;
# First iteration only
print table_headers(\@row) unless ${^LOOP};
# All iterations
print table_row(\@row);
}
=head1 DESCRIPTION
This is really just a test/experiment with L<Keyword::Simple>. It gives
you a keyword C<loop> which acts like a C<< while(1) >> loop - that is, it
loops infinitely until an explicit C<last>. This is quite similar to
ikegami's L<Syntax::Feature::Loop>.
( run in 1.769 second using v1.01-cache-2.11-cpan-96521ef73a4 )