FormValidator::Simple::Plugin::Math - Math evaluation for FormValidator::Simple
You can evalute the form data with math expression.
use FormValidator::Simple qw/Math/; my $result = FormValidator::Simple->check( $req => [ category => [ 'NOT_BLANK', ['MATH', 'x % 100', '!0']], ### valid if category % 100 != 0 ]);
['MATH', some_math_expression, is_what]
x is the value to be passed. e.g.
Sets some number.
Switches the true-false evaluation if
is_what starts with
<ally at blinkingstar.net>
Please report any bugs or feature requests to
bug-formvalidator-simple-plugin-math at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=FormValidator-Simple-Plugin-Math. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
You can find documentation for this module with the perldoc command.
You can also look for information at:
Copyright 2007 Yusuke Sugiyama, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.