Codebase list libparams-validate-perl / upstream/0.89
upstream/0.89

Tree @upstream/0.89 (Download .tar.gz)

The Params::Validate module provides a flexible system for validation
method/function call parameters.  The validation can be as simple as
checking for the presence of required parameters or as complex as
validating object classes (via isa) or capabilities (via can),
checking parameter types, and using customized callbacks to ensure
data integrity.

The module has been designed to work equally well with positional or
named parameters (as a hash or hash reference).

It includes both a fast XS implementation, and a slower pure Perl
implementation that it can fall back on.

INSTALLATION

To install this module type the following:

   perl Makefile.PL
   make
   make test
   make install

If you do not have a C compiler on your machine, then the pure Perl
implementation will be installed.  If you have problems compiling the
C version, then run "perl Makefile.PL --pm" to specify that only the
pure Perl version should be tested and installed.

BUGS/PROBLEMS

The XS version may segfault with Perl 5.6.0 under certain conditions.

When using the pure Perl version, trying to run the test suite with
Perl 5.6.0 on my machine caused repeated core dumps, though 5.00503 is
fine.

Perl 5.6.0 is known to be buggy, and upgrading to 5.6.1 is strongly
recommended.

COPYRIGHT AND LICENSE

Copyright (c) 2000-2004 Dave Rolsky
All rights reserved.
This program is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.