> printf("The current date is %04d-%02d-%02d\n", $now->year+1900,
> ($now->mon)+1, $
> now->mday);
>
> It outputs the date in such a format: "The current date is 2005-05-16".
> I would like the name of the month(ex. 'May') displayed instead of 05.
> What is the easiest way to do this?
>
The most most easiest is to create your own dictionary:
my %month = ( 0 => 'Jan',
1 => 'Feb',
2 => 'Mar',
....
11 => 'Dec',
);
and then access it from $month{$now->mon}
Peter
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>