John wrote:
I was just updating some old script and found a big switch full of one-liners. In one of the cases there is no ";". Why doesn't the interpreter flag that as a syntax error?

The ';' character separates statements within a block. Accordingly, it's not needed after the last statement.


--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to