Basic HTML version of Foils prepared March 30 97

Foil 58 Additional Control Flow Constructs III -- Accelerated Tests
(Chapter 9 of the Llama Book)

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


1 There are a set of ways of doing simple tests which imply fewer curly braces and other punctuation
2 expr1 if testexp; # is equivalent to
3 if (testexp) {
  • expr1;
4 }
5 last, redo and next can be followed by such tests e.g.
6 last DOREALWORK if userendofinitializationhit ;
7 There are similar abbreviations for unless,while,until
8 dothisexpression unless conditionholds;
9 dostandardstuff while normalconditionholds;
10 dostandardstuff until specialconditionseen; # should be self explanatory

in Table To:


© 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