Convert into month name

Hi,

If I am having month like 2/3/4 then how can I convert it into month name like Feb/Mar/Apr....
Is there any defined function in Perl ??

There is no pre-defined function for that, but it's easy to do yourself.

sub month_to_name {
    my @mons = qw/Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec/;
    my $month = shift;
    return $mons[$month - 1];
}

If you need something more complex, I found the Date::Calc module very useful.

OK, thank you pludi !!

Will do it now by writting a function.. I was just curious if any inbuilt function is there in perl.