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
It was a trailing space in $_ that was getting me. I changed a chomp to a chop and it now finds the string. Thanx for the tip, and the code! -Michael >>> "Patel, SamirX K" <[EMAIL PROTECTED]> 12/05/02 05:08PM >>> Could there be extra, non-visible characters attached to the subject coming back?

RE: Compare script fails

2002-12-05 Thread Patel, SamirX K
Could there be extra, non-visible characters attached to the subject coming back? You might want to try using a regular expression to do the comparison. It'll give you more control to pass or ignore stuff. Something the following will ignore extra leading or trailing characters, and ignore case