In a message dated Fri, 26 Apr 2002, Damian Conway writes:
> Larry is still considering allowing a C<FIRST> block that would do this.
> It would go inside the loop block.
> [...]
> This will be called a C<NEXT> block. It goes inside the loop block.
> [...]
> This will be called a C<LAST> block. It goes inside the loop block.
> [...]
> Larry has been mulling over whether various types of loop should be
> allowed to take C<else> blocks to accomplish this.
So:
for $results.get_next() {
FIRST { print "Results:<BR>"; }
print $_;
NEXT { print "<HR>"; }
LAST { print "Done."; }
} else {
print "No results.";
}
Do I have that right? And "<HR>" won't be printed before "Done."? That's
quite nice.
Trey