http://qs1969.pair.com?node_id=513585


in reply to Re: Strict to references of a particular Variable of particular type.
in thread Strict to references of a particular Variable of particular type.

People avoid prototypes for enforcing argument types and argument count because prototypes do not enforce argument types or argument count:

sub foo ($) { print ">>$_[0]<<\n"; }; my @bar = (4,5,6); foo 1,2,3; foo @bar; foo(@bar);

I forgot to point to Tom Christiansens Far More Than You Ever Wanted To Know About Prototypes - it details the uses and abuses of prototypes, and my rule of thumb has been to avoid them unless I really need them.