![]() |
|
Think about Loose Coupling | |
PerlMonks |
Regex Mysteryby roho (Bishop) |
on Apr 13, 2025 at 03:47 UTC ( [id://11164679]=perlquestion: print w/replies, xml ) | Need Help?? |
roho has asked for the wisdom of the Perl Monks concerning the following question:
Greetings monks,
It's late, I'm tired, and I must be missing the obvious. I need another pair of eyes to see what I've overlooked. The code sample below tests a file name against a regex containing the same file name. The first test uses forward slashes (and works as expected). The second test uses backslashes and does not work. Please note: I have tried escaping the backslashes, but it still fails. I have tried running the regex through the "qr()" function, but it still fails. What am I missing here? TIA for any help you can provide.
"It's not how hard you work, it's how much you get done."
Back to
Seekers of Perl Wisdom
|
|