| HTML-Widget documentation | Contained in the HTML-Widget distribution. |
HTML::Widget::Constraint::Integer - Integer Constraint
my $c = $widget->constraint( 'Integer', 'foo' );
Integer Constraint.
Provides a regex to validate unsigned integers.
Sebastian Riedel, sri@oook.de
This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.
| HTML-Widget documentation | Contained in the HTML-Widget distribution. |
package HTML::Widget::Constraint::Integer; use warnings; use strict; use base 'HTML::Widget::Constraint::Regex';
sub regex {qr/^[0-9]*$/}
1;