in reply to When to use Prototypes?
FWIW, my reason for using prototypes in a situation like this:
is because it does check the prototypes, since it's not a member dispatch or anything like that.sub helper ($$$) { ... sub foo { # code that calls helper
Specifically, if I add a parameter to the helper (or remove one) as I tinker with the code, the compiler will catch any uses I didn't update.
Basic idea: in situations when they do offer checking, why not give the compiler all the information you can?
—John
In Section
Meditations