Replace the warn with whatever error handling suits your taste.$foo = $query->param('should_be_int'); warn "Not an integer!" if ($foo =~ /[^0-9\-]/)
Trinary
In reply to Re: integer validation
by Trinary
in thread integer validation
by pabaris1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |