Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: OO Perl Baby Steps

by cdarke (Prior)
on Jun 12, 2013 at 15:27 UTC ( #1038495=note: print w/replies, xml ) Need Help??


in reply to OO Perl Baby Steps

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1038495]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2018-07-20 01:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (422 votes). Check out past polls.

    Notices?