Welcome to the Monastery | |
PerlMonks |
Re^2: regex match with interpolated patternby fletcher_the_dog (Friar) |
on Aug 18, 2004 at 19:49 UTC ( [id://384089]=note: print w/replies, xml ) | Need Help?? |
You're date variable is using / as the delimiter. As a result you aren't matching the pattern you think you are. You could just use a different delimiter for your pattern.
If you are interpolating a string it does not matter if it has characters that are the same as the delimiter. The boundaries of the regex are determined before the interpolation is done. Try this:
In Section
Seekers of Perl Wisdom
|
|