in reply to The purpose of prototypes in perl subroutines
Other sligtly less controversial uses for prototypes are to be able to create constant subroutines and subs that take bare code-blocks as an argument (like grep and map do).
If you search for prototypes on this site you'll find a lot more information and probably some heated debate :-)
Some interesting nodes:
When to use Prototypes?
Function Prototypes
Far More Than Everything You've Ever Wanted to Know about
Prototypes in Perl
|
|---|