On 4/15/02 10:38 PM, Timothy Johnson [EMAIL PROTECTED] wrote:
I think the preferred way to do a negative match is with the !~ operator.
if( $email !~ /@/ )
at this point you don't really need to check if $email eq , because if it
does it will not have an @ in it.
I'm not sure, but you
If you want to see if a variable contains a @, do what the other
suggested. If you want to see if you have (at least) a well formed
email address (with optional MX host checking) look at Email::Valid.
Cheers,
Kevin
On Mon, Apr 15, 2002 at 11:58:11PM -0400, Daniel Falkenberg ([EMAIL PROTECTED])
On Monday, April 15, 2002, at 08:58 PM, Daniel Falkenberg wrote:
Hello All,
How would I go about checking to see if a variable contains an @ symbol?
$email = [EMAIL PROTECTED];
if ($email ne @ || $email eq ) {
print Please make sure your type your email address in correctly;
} else {
: bob ackerman
To: [EMAIL PROTECTED]
Sent: 4/15/02 8:50 PM
Subject: Re: Checking and email address
On Monday, April 15, 2002, at 08:58 PM, Daniel Falkenberg wrote:
Hello All,
How would I go about checking to see if a variable contains an @
symbol?
$email = [EMAIL PROTECTED];
if ($email ne