Module setup argument validation

Nigel Bowden nbowden at
Fri Jul 6 01:50:04 PDT 2007


very nice article.


----- Original Message ----- 
From: "Nik Clayton" <nik at>
To: "Oliver Gorwits" <oliver.gorwits at>
Cc: "Milton Keynes Perl Mongers" <miltonkeynes-pm at>
Sent: Thursday, July 05, 2007 11:53 PM
Subject: Re: Module setup argument validation

> Oliver Gorwits wrote:
>> I'm writing a module which is essentially a blob of glue between some
>> other very useful Perl modules.
>> What I'd like to do is validate the parameters coming in to my module,
>> some of which are for my own use, and others are destined for the other
>> modules (encapsulated as hashes).
>> I'm currently looking at Params::Validate -- but my question is, are
>> there any other contenders in the ring?
> There seem to be quite a few.  I note on CPAN:
>     Params::Check (and Params::Check::Faster (!))
>     Params::Util
>     Params::Validate::Micro
> If I wasn't going to use Params::Validate I would probably use
> Params::Util -- that's based solely on the author's reputation though.
> I wrote about using Params::Validate a while back,
> might be helpful.
> N
> _______________________________________________
> MiltonKeynes-pm mailing list
> MiltonKeynes-pm at

More information about the MiltonKeynes-pm mailing list