Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the post-for/if syntax called?

Does the following syntax have a name?

print for ( @ARGV );

exit if $x;
like image 914
Tim Avatar asked Apr 19 '11 16:04

Tim


3 Answers

They're statement modifiers.

like image 94
Jonathan Leffler Avatar answered Nov 08 '22 15:11

Jonathan Leffler


It's called "Statement Modifiers" in the perlsyn documentation.

like image 4
Mat Avatar answered Nov 08 '22 13:11

Mat


Sometimes they are known as postfix constructions.

like image 1
mob Avatar answered Nov 08 '22 15:11

mob