Scroll to navigation

Params::Validate::Dummy(3pm) User Contributed Perl Documentation Params::Validate::Dummy(3pm)

NAME

Params::Validate::Dummy - Stub for Params::Validate

SYNOPSIS

  use Params::Validate::Dummy qw();
  use Module::Optional qw(Params::Validate);

DESCRIPTION

This module provides stub routines for those who don't have Params::Validate installed.

For more details, please refer to the documentation for Params::Validate.

The code here is just stub routines which do NOTHING at all, passing through any arguments in the API and prototypes of Params::Validate. In particular, the dummy stubs do not do defaulting, validation, untainting or anything else that Params::Validate does. If you need this functionality, either provide it yourself in the surrounding code, or don't use this module and insist that the real Params::Validate is installed.

"validate", "validate_pos"

The parameter list is passed through as a return value.

"validate_with"

Returns the value of the params option.

"set_options", "validation_options"

These do nothing at all.

Data types: "SCALAR", "SCALARREF", "ARRAYREF", "HASHREF", "GLOB", "GLOBREF", "BOOLEAN", "CODEREF", "HANDLE", "OBJECT", "UNDEF", "UNKNOWN"

In the Params::Validate module, these are constants implemented by subs that return numbers. This module implements the same functions.

SUPPORT

See Module::Optional

2021-01-07 perl v5.32.0