Re: Validating email addresses

From: Jürgen Exner (jurgenex_at_hotmail.com)
Date: 08/11/04


Date: Wed, 11 Aug 2004 05:23:21 GMT

Arthur wrote:
> Hi All,
>
> I'm using that Perl module: Mail::RFC822::Address qw(valid).
>
> I am not getting any of the expected results at all. First off, the
> perl code compiles, so that means it found Mail::RFC822::Address.
>
> When I ran the test:
>
> if (valid("me@mail.com")) {

You elected to have perl interpolate the array @mail.
Somehow I doubt this is really what you want.

Use single quotes if you don't want Perl to interpolate @mail.

BTW: if you would have enabled warnings then perl would have told you
(unless you actually do have an array named @mail).

jue



Relevant Pages

  • Re: Validating email addresses
    ... > Arthur wrote: ... > You elected to have perl interpolate the array @mail. ... > Use single quotes if you don't want Perl to interpolate @mail. ...
    (comp.lang.perl.misc)
  • Re: Validating email addresses
    ... Even stranger, if the list of addresses I send all have an @ sign, ... > Arthur wrote: ... > You elected to have perl interpolate the array @mail. ... > Use single quotes if you don't want Perl to interpolate @mail. ...
    (comp.lang.perl.misc)
  • Re: How to write to drive A: from CGI Perl
    ... Cle: Jue, If you can't do it as you wrote, I thank you. ... I will introduce my best Perl ... My computer can't reboost with a floppy disk which is fully inserted ...
    (comp.lang.perl.misc)
  • Re: why i get different result from command line and browser?(not 500 Err)
    ... >> Did you check the answer in the FAQ? ... If your program runs fine from the command line then you don't have a Perl ... You may have a problem with CGI, or your web server configuration, or ...
    (comp.lang.perl)
  • Re: regular expressions - math on backreferences
    ... Chris Nolte wrote: ... You should kick your system administrator until he fixes this broken Perl ... installation. ...
    (comp.lang.perl)