Keep It Simple, Stupid | |
PerlMonks |
Re^3: regex match with interpolated patternby Zed_Lopez (Chaplain) |
on Aug 18, 2004 at 16:27 UTC ( [id://384036]=note: print w/replies, xml ) | Need Help?? |
Uncomment your print ("$dm $dmm");. You'll see that you actually have the literal strings '&date_manip' and '&date_manip1(1)' in them. That's why they're not matching something that looks like a date. Just use:
And you'll be a lot closer. You also may wish to check out Date::Calc and Date::Manip and choose one for your date routines.
In Section
Seekers of Perl Wisdom
|
|