Module setup argument validation

Nigel Bowden nbowden at dsl.pipex.com
Fri Jul 6 01:50:04 PDT 2007


Nik,

very nice article.

Nigel.

----- Original Message ----- 
From: "Nik Clayton" <nik at ngo.org.uk>
To: "Oliver Gorwits" <oliver.gorwits at oucs.ox.ac.uk>
Cc: "Milton Keynes Perl Mongers" <miltonkeynes-pm at pm.org>
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,
> http://jc.ngo.org.uk/blog/2007/01/15/perl-parameter-validation-and-error-handling/
> might be helpful.
>
> N
> _______________________________________________
> MiltonKeynes-pm mailing list
> MiltonKeynes-pm at pm.org
> http://mail.pm.org/mailman/listinfo/miltonkeynes-pm 



More information about the MiltonKeynes-pm mailing list