in reply to Re: Months of the year
in thread Months of the year

Thats a lot less code, now is trying to get the full name of the months with:
my @months = $t->fullmonth;
Not that easy I guess. It only gives the full name of the current month.

Replies are listed 'Best First'.
Re^3: Months of the year
by farang (Chaplain) on Mar 31, 2014 at 20:16 UTC
    use Time::Piece; use feature 'say'; my $t = Time::Piece->strptime('1', '%m'); for ( 0..11 ) { say $t->add_months($_)->fullmonth }