In Perl, the semi-colon ; is not a statement terminator, as it is in languages like C, C++ and Java, it is a statement separator, as it is in Pascal and UNIX shells.
So, the last statement in a block does not require a semi-colon after it. It is a good idea to put one in though, because someone (maybe you) later will add another statement and get a syntax error.
In reply to Re: OO Perl Baby Steps
by cdarke
in thread OO Perl Baby Steps
by Clovis_Sangrail
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |