The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

FormValidator::Lite::Constraint - utilities for writing constraint rules.

DESCRIPTION

This module provides some utility classes for writing constraint rules declaratively.

This module enables strict->import and warnings->import automatically.

FUNCTIONS

rule($name, $code)

Define new rule.

file_rule($name, $code)

Define new file uploading rule.

alias($from => $to)

Define the alias.

delsp($x)

Remove white space from $x and return it.