Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: To & or not to & ?

by TedPride (Priest)
on Nov 12, 2004 at 07:50 UTC ( #407293=note: print w/replies, xml ) Need Help??


in reply to To & or not to & ?

I tend to use &function whenever I'm not passing variables, and function() when I am. I may switch to always using function() now that I know about @_ being passed.

Replies are listed 'Best First'.
Re^2: To & or not to & ?
by TimToady (Parson) on Nov 12, 2004 at 16:16 UTC
    That's a good idea anyway since a bare &function in Perl 6 won't call the function, but merely return a reference to the function.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2021-10-24 19:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (89 votes). Check out past polls.

    Notices?