Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re: A question of style

by chromatic (Archbishop)
on Aug 23, 2000 at 04:13 UTC ( #29133=note: print w/ replies, xml ) Need Help??

in reply to A question of style

I generally only use the ampersand when I'm calling a subroutine via a reference. The rest of the time, I follow perlstyle and put parenthesis on user-defined subroutines, even when I pass an empty argument list.

Idiomatic Perl is good, but I haven't seen enough people using the &subname-passes-@_ behavior often enough to use it regularly.

Sometimes, I even use $sub_ref->(), but that's just silly.

Comment on Re: A question of style

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (2)
As of 2015-10-05 00:12 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (105 votes), past polls