On Tuesday, April 2, 2002, at 09:58  AM, Timothy Johnson wrote:

> $line = "my target[ target ]";
>
> $t = "target[";
> if($line =~ /$t/){
>       print "yes";
> }

try:
$t = 'target\[';

with single quotes so no interpolation when setting $t.

Reply via email to