It will match the stuff you want...if ( $dir =~ /^\Q$fav\E\\/ ) { # Note the \E after $fav!
Update: placed the \E at the wrong place...
-- JaWi
"A chicken is an egg's way of producing more eggs."
In reply to Re: backslash in regex
by JaWi
in thread backslash in regex
by arc_of_descent
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |