Perl-Sensitive Sunglasses | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
if ( $dir =~ /^\Q$fav\\\E/ ) { # Note the \E at the end!
won't work -- the problem is under \Q modifier the backslash at the end matches wrong
if ( $dir =~ /^\Q$fav\E\\/ ) {
works
-- Jaap Karssenberg || Pardus (Larus)? <pardus@cpan.org> >>>> Zoidberg: So many memories, so many strange fluids gushing out of patients' bodies.... <<<< In reply to Re: Re: backslash in regex
by Pardus
|
|