Hello, I tried this: $line = " .\A[0] ( A[0] ) , .\B[0] ( B[0] ) , .\C[0] ( C[0] ) , .\D[0] ( D[0] ) , ";
$v = "A[0]"; if ($line =~ /$v/) { print "got\n"; } However, it doesn't work. Does anybody know how I can modify it so it will match pattern with special characters in the variables? many thanks! Nikki __________________________________________________ Do You Yahoo!? Buy the perfect holiday gifts at Yahoo! Shopping. http://shopping.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]