Validate method/function parameters

Edit Package perl-Params-Validate

The Params::Validate module allows you to validate method or function
call parameters to an arbitrary level of specificity. At the simplest
level, it is capable of validating the required parameters were given
and that no unspecified additional parameters were passed in.

It is also capable of determining that a parameter is of a specific
type, that it is an object of a certain class hierarchy, that it
possesses certain methods, or applying validation callbacks to
arguments.

Refresh
Refresh
Source Files
Filename Size Changed
Params-Validate-1.05.tar.gz 0000100487 98.1 KB
perl-Params-Validate.changes 0000008733 8.53 KB
perl-Params-Validate.spec 0000002642 2.58 KB
Revision 26 (latest revision is 46)
Stephan Kulow's avatar Stephan Kulow (coolo) accepted request 103733 from Vítězslav Čížek's avatar Vítězslav Čížek (vitezslav_cizek) (revision 26)
- update to 1.05
  * The XS code had a code path where it could pass the contents of a Perl
    variable as the first argument to the XS croak() subroutine. This subroutine
    is like printf(), and should receive a format string as its first
    argument. According to RT #74777, this can lead to segfaults on some systems.
    This could in theory be a security bug, but it's very unlikely that
    untrusted user input could end up being passed to this croak(). It is called
    when a spec specifies a "depend" value on another parameter. The value of
    the "depend" parameter was passed in the first argument to croak().
  1.04    2012-02-08
  * Use the latest Module::XSOrPP dzil plugin to generate a saner Build.PL. No
    need update if you're using an earlier version.
  * This release uses Module::Implementation to handle loading the XS or pure
    Perl implementation of Params::Validate.
  1.02    2012-02-06
  * The previous release never loaded the XS implementation, even if it had been
    compiled.
  * With newer versions of Perl, the pure Perl implementation treated regexp
    objects differently than the XS implementation. They should be treated as
    belonging to the SCALARREF type for backwards compatibility.
  * These two bugs combined managed to break the test suites of a number of
    modules on CPAN. This release should fix them.

- update to 1.01
- The generated Build.PL detects whether or not the machine it's run on has a
  working compiler, and disables XS automatically if it doesn't. Fixes RT
  #44719.
Comments 0
openSUSE Build Service is sponsored by