The Perl and Raku Conference 2025: Greenville, South Carolina - June 27-29 Learn more

NAME

Valiant::Filter::Lower - lower case a string

SYNOPSIS

use Moo;
has 'name' => (is=>'ro', required=>1);
filters name => (
lower => 1,
);
my $user = Local::Test::User->new(name=>'JOHN');
print $user->name; # 'john'

DESCRIPTION

This is a very simple filter that takes no paramters and just does a 'lc' on the value of the attribute.

SEE ALSO

Valiant, Valiant::Filter, Valiant::Validator::Filter.

AUTHOR

See Valiant

COPYRIGHT & LICENSE

See Valiant