Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Help with a more precise regexby vladb (Vicar) |
on Apr 25, 2003 at 19:53 UTC ( [id://253228]=note: print w/replies, xml ) | Need Help?? |
Not a direct answer to your question, but as a suggestion I wanted to point you in the direction of the Date::Manip module. Often in my scripts which dealt with time/date parsing, this module saved my day. It is able to do a lot of date 'magic' but may require some digging in order to understand :)
Update: Here's a rendition of Ovid's code, but using the Date::Manip module. I agree that using the module for such a simple task may look like an overkill, but I have this feeling your program may have to deal with a lot more date/time manipulation going forward. Even if this is not the case, it's always good to have another way of doing a thing ;-) And the output the script generates is:
_____________________
In Section
Seekers of Perl Wisdom
|
|