develooper Front page | perl.perl6.language | Postings from August 2006

NEXT and the general loop statement

Thread Next
Joe Gottman
August 16, 2006 17:21
NEXT and the general loop statement
Message ID:
Is a NEXT clause called before or after the update portion of a general loop
statement?  For instance, consider the following code:


loop $n = 0; $n < 5; ++$n {

    NEXT {print $n;}



Is the output 01234 or 12345?


Joe Gottman



Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About