Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
How to iterate thru entire array with start point other than beginningby dirtdog (Monk) |
on Sep 01, 2016 at 16:33 UTC ( [id://1170987]=perlquestion: print w/replies, xml ) | Need Help?? |
dirtdog has asked for the wisdom of the Perl Monks concerning the following question: Hi Monks, I have a requirement to provide stats on the last 12 months from current day. I have an array of months so I would need to report out Oct 15', Nov 15', Dec 15', Jan 16' thru Sep 16' as the last column. Next month, the report would run on Oct, 1st and so the report would begin with Nov 15', Dec 15', Jan 16', etc... My code is as follows
I have figured out how to start looping thru the Months array at October, but I can't figure out how to go past the end to September. thanks very much for your time and effort and ideas.
Back to
Seekers of Perl Wisdom
|
|