>>>>> "Chris" == Chris Devers <[EMAIL PROTECTED]> writes:

Chris> My impression is that the missing semi-colon is allowed to make it so 
Chris> that statements like this --

Chris>   sub ack { print "Ack! Ack! Mars will rule!" }

Chris> -- work as one-liners without having to fuss over another semi-colon. 
Chris> For anything longer than a single-statement one-liner, it's a bad habit.

My rule is that if I'm writing a multi-line block:

        if (...) {
                ...
                ...
                ...
        }

then I include the final semicolon, but if it's only one line,
I leave it off.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

-- 
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