NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Deliberately Unmentioned (Score:1)
I didn't mention the glob prototype because I want to discourage the use of barewords.
Reply to This
Re: (Score:1)
There is an omission in your list of good reasons to use prototypes.
A final good reason to use prototypes is in a comparison sub. If you pass sort a subroutine with ($$) as a prototype then it passes the arguments in @_ rather than setting $a and $b in the package that sort was called from. If you're setting up a sort in a different package than you're calling sort in, this can be a lifesaver.
This may seem like an obscure boundary case, but I've personally found it to be the most common reason why I've us