On Mon, 15 Aug 2005, David Golden wrote:
Not sure if it's much lighter than Params::Validate, but a quick CPAN search points out Params::Check, which looks similar but with fewer bells and whistles. A quick look at the docs and code suggests you're not going to get much closer to your desired functionality and still be general enough for use by others. As with Params::Validate, you still have to write a specification indicating defaults and required arguments, but that's necessary even to do your own hand-rolled checks.
Params::Check is in pure Perl, P::V is all in XS except for a few bits, so I'd guess P::V is going to be faster.
-dave /*=================================================== VegGuide.Org www.BookIRead.com Your guide to all that's veg. My book blog ===================================================*/