1 | There are ways of performing simple tests that require fewer curly braces and other punctuation |
2 | expr1 if testexp; # is equivalent to |
3 |
if (testexp) {
|
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; |