Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: 5.10.0 seems to break package

by Joost (Canon)
on Jul 10, 2009 at 20:00 UTC ( #779032=note: print w/replies, xml ) Need Help??


in reply to 5.10.0 seems to break package

foo {} is a CALL to a function named foo, passing a hashref - not a function declaration. You need a semi-colon after a function call. update: well, most of the time - not at the end of a file or block, for example, but you do need one before starting a new package.

You probably meant something like:

package foo; sub foo {} package foo::bar; sub bar {}
Note the subs.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://779032]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2023-02-09 06:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer not to run the latest version of Perl because:







    Results (44 votes). Check out past polls.

    Notices?