Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^3: How to get last month date period

by almut (Canon)
on Mar 04, 2010 at 16:56 UTC ( #826741=note: print w/ replies, xml ) Need Help??


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

This will break in January.

You're right.  To fix, just add:

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


Comment on Re^3: How to get last month date period
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://826741]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2014-10-23 03:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (123 votes), past polls