Re: BInding operator fails

2007-02-26 Thread Jay Savage
On 2/26/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Thank you both. I am trying to find out why "!~" operator fails. It is due to the whitespaces. but I am using "six" to ignore spaces. Sorry guys. Below is the actual code. I made the changes that A.R. Ferreira suggested and it fai

Re: BInding operator fails

2007-02-26 Thread loveperl6
Subject: Re: BInding operator fails On 2/26/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Tom your code works fine. But I was tring to understand why "!~" fails > above. > > if ($result !~ /$rdns/ix) { > > That's checking whether $rdns, as a p

Re: BInding operator fails

2007-02-26 Thread D. Bolliger
[EMAIL PROTECTED] am Montag, 26. Februar 2007 18:49: [snip] Hi! > use strict; > use warnings; > > my $rdns="cn=Exchange Sites,cn=Proxy Views,cn=JoinEngine > Configuration,ou=Conf,o u=InJoin,ou=applications,dc=marriott,dc=com"; > > my $result="cn=Exchange Sites"; > > if ($result !~ /\Q$rdns\E/six)

Re: BInding operator fails

2007-02-26 Thread Tom Phoenix
On 2/26/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Tom your code works fine. But I was tring to understand why "!~" fails above. > if ($result !~ /$rdns/ix) { That's checking whether $rdns, as a pattern, does not match the string in $result. That's why it "fails": It does not mean

Re: BInding operator fails

2007-02-26 Thread Adriano Ferreira
=InJoin,ou=applications,dc=marriott,dc=com"; my $result="cn=Exchange Sites"; if ($result !~ /\Q$rdns\E/six) { print "\nresult: '$result'"; print "\nrdn: '$rdns'\n"; } else { print "String is there\n"; } OUTPUT is: String

Re: BInding operator fails

2007-02-26 Thread loveperl6
dns\E/six) { print "\nresult: '$result'"; print "\nrdn: '$rdns'\n"; } else { print "String is there\n"; } OUTPUT is: String is there -Original Message- From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: beginners@perl.org Sent: Mon, 26

Re: BInding operator fails

2007-02-26 Thread Tom Phoenix
On 2/26/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: 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

Re: BInding operator fails

2007-02-26 Thread Adriano Ferreira
On 2/26/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: 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 t