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
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
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
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