Re: Compare script fails (Solved!)

2002-12-06 Thread John W. Krahn
Michael Weber wrote: > > It was a trailing space in $_ that was getting me. I changed a chomp > to a chop and it now finds the string. It would be better to use s/\s+$// to remove trailing whitespace as it removes _only_ whitespace whereas chop will remove _any_ character from the end of the st

RE: Compare script fails (Solved!)

2002-12-06 Thread Michael Weber
OOKFOR/i ) { $FOUND = 1; } Hope this helps! Samir -Original Message- From: Michael Weber [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 05, 2002 12:03 PM To: [EMAIL PROTECTED] Subject: Compare script fails I am writing a script to check email functionality by sending a test mess

RE: Compare script fails

2002-12-05 Thread Patel, SamirX K
case changes from the original: if ($_ =~ /$LOOKFOR/i ) { $FOUND = 1; } Hope this helps! Samir -Original Message- From: Michael Weber [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 05, 2002 12:03 PM To: [EMAIL PROTECTED] Subject: Compare script fails I am writing a script to

Compare script fails

2002-12-05 Thread Michael Weber
I am writing a script to check email functionality by sending a test message to an account that forwards it back to a pop account. I cannot seem to get the script to match the expected subject lines with what was received. No matter what I do, it never shows a match. Any ideas? Here's the subro