When I try to do a pattern match on a variable that contains a '[', I get the following error:
Unmatched [ before HERE mark in regex m/target[ << HERE / at C:\PerlScripts\test.pl line 5. Here is my code so far: $line = "my target[ target ]"; $t = "target["; if($line =~ /$t/){ print "yes"; } I've tried escaping the bracket, etc, etc, to no avail. Any suggestions? Tim Johnson SanDisk -------------------------------------------------------------------------------- This email may contain confidential and privileged material for the sole use of the intended recipient. If you are not the intended recipient, please contact the sender and delete all copies. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]