Re: [Perl-unix-users] Email Address Validation

2006-01-16 Thread Bill Platt
Hello everyone, I was able to track down the original issue. It was not in this line of code. However, I do know that I have this code on another script and occasionally --- not following any rhyme or reason --- does declare of false negative. Thank you, Bill $Bill Luebkert wrote: Bill

Re: [Perl-unix-users] Email Address Validation

2006-01-16 Thread $Bill Luebkert
Bill Platt wrote: > I am trying to validate email addresses. > > I have the following code which succeeds in > most cases: > > if ($in{email} !~ /[EMAIL PROTECTED]/i) > > If the username part of the email address contains > either a "." or a "-", this code fails. > > Can you tell me why it wou

[Perl-unix-users] Email Address Validation

2006-01-16 Thread Bill Platt
I am trying to validate email addresses. I have the following code which succeeds in most cases: if ($in{email} !~ /[EMAIL PROTECTED]/i) If the username part of the email address contains either a "." or a "-", this code fails. Can you tell me why it would fail, and how I could change it t