in reply to Testing parameters and return values

There's a couple of modules on CPAN to help with this, start with Params::Validate, Params::Util ...
  • Comment on Re: Testing parameters and return values