Re: matching newline

2004-02-29 Thread Camilo Gonzalez
Tracy Hurley wrote: Camilo, I don't think you need to put $email in quotes to do the check, but it works if you do. Try this: if $email =~/@.*@/g || $email =~ /\n/s; Hope it helps, Tracy New to the list, so apologies if I post incorrectly. On Feb 28, 2004, at 11:50 PM, Camilo Gonzalez wrote:

Re: matching newline

2004-02-29 Thread Camilo Gonzalez
zsdc wrote: Tracy Hurley wrote: Camilo, I don't think you need to put $email in quotes to do the check, but it works if you do. Try this: if $email =~/@.*@/g || $email =~ /\n/s; It still might not be secure depanding on how $email is being used later. Is it used in a system() call? In open

Re: matching newline

2004-02-29 Thread zsdc
Camilo Gonzalez wrote: zsdc wrote: Tracy Hurley wrote: Camilo, I don't think you need to put $email in quotes to do the check, but it works if you do. Try this: if $email =~/@.*@/g || $email =~ /\n/s; It still might not be secure depanding on how $email is being used later. Is it used in a s