Basic HTML version of Foils prepared March 30 97

Foil 57 Additional Control Flow Constructs II
-- Statement Labels and next,last,redo (Chapter 9 of the Llama Book)

From PERL4 Tutorial for CPS616 Computational Science for Information Age Course CPS616 -- February 1995. by Geoffrey C. Fox


next, redo and last can jump to labelled statements with commands such as
next LABEL1; # or
last LABEL2; # or
redo LABEL3;
LABEL1: This is start of any statement block; # is typical statement label
This is typically used to allow you to jump out over several nests of loops



© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Sat Sep 6 1997