http://qs1969.pair.com?node_id=79323


in reply to Validating Numbers in CGI Script?

As chipmunk lays out, the eval manpage says:
Beware that using eval() neither silences perl from printing warnings to STDERR, nor does it stuff the text of warning messages into $@. To do either of those, you have to use the $SIG{__WARN__} facility.