The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Repl::Spec::Type::BooleanType - A parameter guard for boolean values.

SYNOPSIS

This type guard ensures that a boolean parameter was passed by the user. The guard converts truthy values to 1 and falsy values to 0.

Truthy values are "true", "ok", "on", "yes".

Falsy values are "false", "nok", "off", "no".

DESCRIPTION

Methods

new()
guard()

Parameters: A single expression. Returns: 0 or 1.

name()

SEE ALSO

Repl::Spec::Type::BooleanType Repl::Spec::Type::CheckedArrayType Repl::Spec::Type::CheckedHashType Repl::Spec::Type::InstanceType Repl::Spec::Type::IntegerRangeType Repl::Spec::Type::IntegerType Repl::Spec::Type::PatternType Repl::Spec::Type::StringEnumType

1 POD Error

The following errors were encountered while parsing the POD:

Around line 29:

You forgot a '=back' before '=head1'