in reply to How to get last month date using Date::Calc

Hello kanewilliam7777

I think you can use Add_Delta_DHMS adding -1 month (well I intended Add_Delta_YMD )

update

perl -e "use Date::Calc qw(Add_Delta_YMD); ($year, $month, $day) = Add +_Delta_YMD(2003, 8,1,0,-1,0); print qq($month/$year)" 7/2003

L*

There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.