Data::FormValidator::Filters - Basic set of filters available in an Data::FormValidator profile. |
Data::FormValidator::Filters - Basic set of filters available in an Data::FormValidator profile.
use Data::FormValidator;
my $validator = new Data::FormValidator( "/home/user/input_profiles.pl" ); my $results = $validator->check( \%fdat, "customer_infos" );
These are the builtin filters which may be specified as a name in the filters and field_filters parameters of the input profile. You may also call these functions directly through the procedural interface by either importing them directly or importing the whole :filters group. For example, if you want to access the trim function directly, you could either do:
use Data::FormValidator::Filters (qw/filter_trim/); or use Data::FormValidator::Filters (:filters);
$string = filter_trim($string);
Notice that when you call filters directly, you'll need to prefix the filter name with ``filter_''.
Data::FormValidator(3) Data::FormValidator::Constraints(3)
Author: Francis J. Lacoste <francis.lacoste@iNsu.COM> Maintainer: Mark Stosberg <mark@summersault.com>
Copyright (c) 1999,2000 iNsu Innovations Inc. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the terms as perl itself.
Data::FormValidator::Filters - Basic set of filters available in an Data::FormValidator profile. |