perldoc -q quote talks about \Q before a regex to escape special characters.
how do you use \Q when you want to anchor the regex with a dollar sign ?
my $string = my $regex = "foo";
print "match\n" if($string =~ /^\Q${regex}$/);
--
Jeremy Kister
http://jeremy.kister.net./
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>
