NAME

HTML::Controls::Number - class for a simple number control

SYNOPSIS

my $number = HTML::Controls::Number->new('name');

This class implements a simple number control, using just a <input type="text"> element. The numbers are recognized using Regexp::Common.

REDEFINED PROTECTED METHODS

_validate_value

Calls the inherited method, then adds an error if the value does not match $RE{num}{real}.

_preprocess_value

Strips leading and trailing whitespace.

COPYRIGHT

Copyright 2005 Gianni Ceccarelli, All Rights Reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.