in reply to backslash in regex
The \Q disables pattern metacharacters until a \E is found, thus, if you wrote your regexp like:
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 Section
Seekers of Perl Wisdom