in reply to Limit number of Sub routine argument list
use Carp; ... sub mysub { croak "Too many arguments for mysub" if @_ > $limit; ... } [download]