in reply to Getting the Latest Date Issue
“Use the CPAN, Luke!”
Using a module such as Date::Manip, you can solve problems like this very easily ... and do it in a very generic way.
You can, for the most part, treat the entire locale-specific conversion process as a black-box, and the returned date values as an opaque scalar type. Just the way you like it...
If it were not for CPAN, Perl would merely be “a peculiar little language.” CPAN is what makes it into a very powerful problem-solving tool. (http://search.cpan.org should be prominent in your browser bookmarks toolbar.) When you find yourself doing something like this, your gut-reaction should be to search CPAN first, where you can expect to find hundreds if not thousands of modules on almost every conceivable topic including “rocket science.”