FormValidator::Simple::Plugin::Math - Math evaluation for FormValidator::Simple


FormValidator-Simple-Plugin-Math documentation  | view source Contained in the FormValidator-Simple-Plugin-Math distribution.

Index


NAME

Top

FormValidator::Simple::Plugin::Math - Math evaluation for FormValidator::Simple

VERSION

Top

Version 0.03

SYNOPSIS

Top

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
    ]);

EVALUATION

Top

    ['MATH', some_math_expression, is_what]

some_math_expression

x is the value to be passed. e.g. x**3

is_what

Sets some number.

Switches the true-false evaluation if is_what starts with !.

AUTHOR

Top

Yusuke Sugiyama, <ally at blinkingstar.net>

BUGS

Top

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.

SUPPORT

Top

You can find documentation for this module with the perldoc command.

    perldoc FormValidator::Simple::Plugin::Math

You can also look for information at:

* AnnoCPAN: Annotated CPAN documentation

http://annocpan.org/dist/FormValidator-Simple-Plugin-Math

* CPAN Ratings

http://cpanratings.perl.org/d/FormValidator-Simple-Plugin-Math

* RT: CPAN's request tracker

http://rt.cpan.org/NoAuth/Bugs.html?Dist=FormValidator-Simple-Plugin-Math

* Search CPAN

http://search.cpan.org/dist/FormValidator-Simple-Plugin-Math

ACKNOWLEDGEMENTS

Top

COPYRIGHT & LICENSE

Top


FormValidator-Simple-Plugin-Math documentation  | view source Contained in the FormValidator-Simple-Plugin-Math distribution.