in reply to Re: How to get last month date period
in thread How to get last month date period

This will break in January.

As for leap years, the rule is:

  • Comment on Re^2: How to get last month date period

Replies are listed 'Best First'.
Re^3: How to get last month date period
by almut (Canon) on Mar 04, 2010 at 16:56 UTC
    This will break in January.

    You're right.  To fix, just add:

    $curr_year-- if $curr_month eq "Jan";