Badger::Data::Facet::Text::MaxLength(3pm)

Badger::Data::Facet::Text::MaxLength3pm

Validation facet for text length

Overview

This module implements a validation facets that checks the length of a text value to assert that it is less than or equal to a pre-defined length.

Methods

This module implement the following method in addition to those inherited from the Badger::Data::Facet::Text, Badger::Data::Facet and Badger::Base base classes.

validate($text_ref, $type)

This method validates that the length (i.e. number of characters) of the text passed by reference as the first argument is less than or equal to the pre-defined maximum limit.

Author

Andy Wardley <http://wardley.org/>

From libbadger-perl 0.16-3 in Debian 13 (Trixie). Parsed by carta from the page's man source.