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