On Thu, 30 Sep 2004, Gunnar Hjalmarsson wrote: > The ';' character separates statements within a block. Accordingly, > it's not needed after the last statement.
That said, it's a good habit to include it. If you ever come back to edit that file later, the original last statment might not always be the last statement, and if you forget to add it -- which would be all too easy to do -- then things will break. My impression is that the missing semi-colon is allowed to make it so that statements like this -- sub ack { print "Ack! Ack! Mars will rule!" } -- work as one-liners without having to fuss over another semi-colon. For anything longer than a single-statement one-liner, it's a bad habit. IMO. -- Chris Devers -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>