Module setup argument validation
nbowden at dsl.pipex.com
Fri Jul 6 01:50:04 PDT 2007
very nice article.
----- 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 (!))
> 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.
> MiltonKeynes-pm mailing list
> MiltonKeynes-pm at pm.org
More information about the MiltonKeynes-pm