arc_of_descent has asked for the wisdom of the Perl Monks concerning the following question:
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: backslash in regex
by JaWi (Hermit) on Feb 02, 2003 at 10:49 UTC | |
by Pardus (Pilgrim) on Feb 02, 2003 at 11:00 UTC | |
by arc_of_descent (Hermit) on Feb 02, 2003 at 11:01 UTC |