next up previous contents
Next: Statement Blocks and Local Up: Perl Statements Previous: Understanding Expressions

Statement Blocks

A statement block is a group of statements surrounded by curly braces. Perl views a statement block as one statement. The last statement executed becomes the value of the statement block.

In Perl statement blocks are enclosed in pairs or curly brackets {....}:

{

   statement_1;
   statemrnt_2;
   statemrnt_3;

.....

   statement_n;
}



dave@cs.cf.ac.uk