in reply to integer validation
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: integer validation
by isotope (Deacon) on Apr 28, 2001 at 02:03 UTC | |
by Kanji (Parson) on Apr 28, 2001 at 03:33 UTC | |
by Trinary (Pilgrim) on Apr 28, 2001 at 02:11 UTC |