I am trying to match a word in a string. I am using to variables here is my small piece of code that should be doing this.
If ($var1 =~ /\b$var2?\b/I) { Print "cannot contain that word.\n"; } Only for some reason it isn't working. Any help is greatly appreciated. Scott -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]