in reply to validate an email address ?

if( $emailaddress =~ m!\@[.a-zA-Z0-9]+\.[a-zA-Z0-9]+$! ) { $emailcheck++ }

But it's too simple to really check an email address..

Update

I only tried to answer simply to the question and adviced him to look for a more serious solution
___________________
Hope this helps

Replies are listed 'Best First'.
Re: Re: validate an email address ?
by merlyn (Sage) on Feb 16, 2001 at 21:19 UTC
    This is wrong, for all the normal reasons. {grin} Please search the wealth of info available on this topic already, or even the other messages likely to pop up on this thread alone!

    -- Randal L. Schwartz, Perl hacker

      Amen.