in reply to Changing format of a date.
There's very little that Date::Manip can do that other modules can't do better and faster.
In your case, the problem is so simple that an external module isn't needed.
$date = '2003-08-01'; $newdate = join('', ($date =~ /(\d\d)/g)[2, 3, 1]);
But as others have pointed out, please do all you can to resist moving from the logical and useful YYYY-MM-DD format to the illogical and useless MMDDYY.
--"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
|
|---|