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

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://29133]
help
Chatterbox?
marioroy running LWP::Simple on Cygwin in parallel completes in 1 second. Pre-loading essential modules is necessary only on MSWin32 Re: Crash with ForkManager on Windows.
marioroy LWP::Simple works best with Perl v5.26 on Windows. Any Perl version is fine on Cygwin and Unix.

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2017-09-23 15:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (272 votes). Check out past polls.

    Notices?