in reply to Re^2: Last month's number with Time::Piece
in thread Last month's number with Time::Piece
just a short observation - to make this work correctly, add a line like this before calling strptime:
if (length($last_month) == 1) { $last_month = "0" . $last_month; }