peschkaj has asked for the wisdom of the Perl Monks concerning the following question:
I'm working on a CGI script which will, eventually, end up sending an email to several people. I'm attempting to make use of the e-mail validation script that is on page 219 of CGI Programming with Perl.
When I try to run this script from the web, I receive the following error: 'Use of uninitialized value in substitution (s///) at mail.cgi line 218.'
Lines 217 and 218 are:
my $addr_to_check = shift; $addr_to_check =~ s/("(?:[^"\\]|\\.)*"|[^\t "]*)[ \t]*/$1/g;
I'm not too good at regexes (in fact, I'm terrible at them) and any help is appreciated.
Thanks in advance,
Jeremiah
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CGI + regex help
by dragonchild (Archbishop) on Oct 09, 2003 at 22:24 UTC | |
by antirice (Priest) on Oct 09, 2003 at 22:39 UTC | |
|
Re: CGI + regex help
by antirice (Priest) on Oct 09, 2003 at 22:10 UTC | |
by peschkaj (Pilgrim) on Oct 09, 2003 at 22:16 UTC | |
by antirice (Priest) on Oct 09, 2003 at 22:27 UTC |