It is not giving me a match. :-( Where it should be...my $line = ' [Category("notestrecord")]'; my $pattern = 'Category("notestrecord")'; if($line =~ /$pattern/) { print "We have a match!"; } else { print "No match!"; }
In reply to Problem with input strings that have "[]" brackets by Laszlo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |