What am i doing wrong?
$fav = 'd:\stuff'; $dir = 'd:\stuff\buff\tuff'; if ($dir =~ /^\Q$fav\\/) { print "Match!\n"; } else { print "No match!\n"; }
This prints "No match!"
Thanx
--
arc_of_descent
In reply to backslash in regex by arc_of_descent
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |