Ok. We know that '', 0, and undef are all invalid e-mail addresses so just alter the validate_email_address sub as such:
sub validate_email_address { my $addr_to_check = shift or return "";
Hope this helps.
antirice
The first rule of Perl club is - use Perl
The ith rule of Perl club is - follow rule i - 1 for i > 1
In reply to Re: Re: Re: CGI + regex help
by antirice
in thread CGI + regex help
by peschkaj
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |