in reply to Converting output from numeric values to text

if ($Month =0)
should be
if ($Month ==0)
But I'd do it with an array instead, something like:
my @Month_name = qw(Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec); my $New_mo = $Month_name[$Month]
---
perl -le'$$=substr(%{*::}->{_},2,1);print+(map{$$++for(1..$_);$$}(2,5,10)),$|'