Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Params::Check vs Params::Validate
May 18, 2009, 9:30 am
rate this thread
I need your advice about choosing a module for parameter checks.
There are two modules I've found interesting and they are similar:
Params::Check and Params::Validate.
At first glance I would prefer Params::Validate because it has a xs
version. On the other hand Params::Check is in the perl 5.10 core
module list. Does anyone know why the perl core developers prefered
Params::Check on Params::Validate ?
Re: Params::Check vs Params::Validate
Params::Check is in the core because (and only because) it is required
by CPANPLUS. As a general rule, the intention nowadays is for the perl
core to contain only modules that are tied to a specific version of
perl, or that are required for installing from CPAN. Including a module
in the core isn't any sort of comment on its usefulness.
Of course, there is another rule, which says 'once something goes into
the core, it never comes out again'. (There is work being done to try to
remove this rule, but it's harder than you might think.) This means that
the core contains a fair few modules (like, say, CGI.pm) that really
don't belong there under current policies, but got added at some point
and now can't be removed. This doesn't mean they are considered 'better'
than their alternatives on CPAN.
- » FAQ 8.22 Why do setuid perl scripts complain about kernel problems?
- — Next thread in » PERL Discussions
- » FAQ 8.18 How can I do an atexit() or setjmp()/longjmp()? (Exception handling)
- — Previous thread in » PERL Discussions