Perl-Sensitive Sunglasses | |
PerlMonks |
Re: A question of styleby chromatic (Archbishop) |
on Aug 23, 2000 at 04:13 UTC ( [id://29133]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|