Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Thanks!#!/usr/bin/perl use strict; use warnings; use Time::Piece; use Time::Piece::month_names(@months); my $t = Time::Piece->new(); my $mon = $t->mon; my $month = $t->monthname; my $year = $t->year; my @all_months = map sprintf( "%s", $_, $month ), 1 .. 12; # $mon foreach my $month ( @all_months ) { print "$month\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Months of the year
by kennethk (Abbot) on Mar 31, 2014 at 19:02 UTC | |
by Anonymous Monk on Mar 31, 2014 at 19:14 UTC | |
by farang (Chaplain) on Mar 31, 2014 at 20:16 UTC | |
|
Re: Months of the year
by toolic (Bishop) on Mar 31, 2014 at 20:04 UTC |