如何让 Perl 打印月份名称而不是数字,例如:9 应该显示为九月。我希望下面的程序打印月份的名称而不是它们的数字。
#!/usr/bin/perl
use strict;
use warnings;
use Date::Easter;
print "Please enter a year";
chomp (my $year = <STDIN>);
my ($m1, $d1) = easter ($year);
my ($m2, $d2) = julian_easter ($year);
my ($m3, $d3) = orthodox_easter ($year);
print "Gregorian => Month: $m1 Day: $d1\n";
print "Julian => Month: $m2 Day: $d2\n";
print "Orthodox => Month: $m3 Day: $d3\n";