Anthony Brummett > UR-0.392 > UR::BoolExpr::Template::PropertyComparison::Like

Download:
UR-0.392.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.39   Source   Latest Release: UR-0.43

NAME ^

UR::BoolExpr::Template::PropertyComparison::Like - perform an SQL-ish like test

DESCRIPTION ^

The input test value is assummed to be an SQL 'like' value, where '_' represents a one character wildcard, and '%' means a 0 or more character wildcard. It gets converted to a perl regular expression and used to match against an object's properties.

If the property returns multiple values, this comparison returns true if any of the values match.

syntax highlighting: