in reply to Why does this compile? [Solved]

Another way to think of this is that each statement in Perl is separated by a semi-colon. So, for example, if you have just one statement, you don't need a terminating semi-colon. That's why perl -e 'print "Hello world!\n"' (without a terminating semi-colon) is valid.

Alex / talexb / Toronto

Thanks PJ. We owe you so much. Groklaw -- RIP -- 2003 to 2013.