All, Hi. I have a problem with the below code. I have two strings, $rdns and $result1. I want to make sure $result 1 is NOT part of $rdns. But the below fails...thus instead of printing the else part of the if-else-loop. It print the main part. Does anyone know what coudl cause this. $rdns="cn=Exchange Sites,cn=Proxy Views,cn=JoinEngine Configuration,ou=Conf,ou=InJoin,ou=applications,dc=marriott,dc=com pwdChangedTime=20070101120000.000000Z"; $result1="Exchange"; if ($result !~ /$rdns/ix) { print "\nresult: '$result'"; print "\nrdn: '$rdns'\n"; } else { print "it is not there\n"; }
Thanks - Bill ________________________________________________________________________ Check out the new AOL. Most comprehensive set of free safety and security tools, free access to millions of high-quality videos from across the web, free AOL Mail and more.