On Tue, May 5, 2009 at 7:55 PM, Dave Rolsky <auta...@urth.org> wrote:
> On Tue, 5 May 2009, Bill Ward wrote: > > I'm often having to add a half dozen lines of code to every subroutine to >> perform argument validation and I'd like to offload it once and for all >> into >> a CPAN module. Has anyone written or seen such a beast? I haven't, so >> I've >> started writing it... but then, what to call it? My working title is >> ArgsChecker.pm but it should be put into a hierarchy - Data:: perhaps? >> > > Please don't write yet another one. I will if none of them meet my needs. > Params::Validate > Params::Util (sort of a validator) > Moose + MooseX::Params::Validate > MooseX::Method::Signatures > Perl6::Signature > > and probably five dozen more. > Thanks for the suggestions. I'm not interested in being locked-in to a framework like Moose, so I won't even consider those. Params::Validate has the right features, but I really don't like the verbosity of its configuration. I was hoping for something more like the Perl prototyping or Getopt::Long syntax. Maybe I'll write a wrapper around Params::Validate?