Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^2: Any differences between method and method()?

by dave_the_m (Prior)
on Aug 18, 2012 at 11:20 UTC ( #988197=note: print w/ replies, xml ) Need Help??


in reply to Re: Any differences between method and method()?
in thread Any differences between method and method()?

If you've predeclared the subroutine you can leave the '()' off.
That's only relevant for function calls; for method calls, predeclaring makes no difference. And to the OP, there's no difference whether you have the () or not.

Dave.


Comment on Re^2: Any differences between method and method()?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2015-08-28 23:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (341 votes), past polls