Hi Luca, Check this: http://stackoverflow.com/questions/11020812/todays-date-in-perl-in-mm-dd-yyyy-format
On 28 January 2014 13:02, Luca Ferrari <[email protected]> wrote: > Hi all, > often I find myself writing something like the following to get the > "human" date: > > my ($day, $month, $year) = (localtime())[3..5]; > $month++, $year += 1900; > print "\nToday is $month / $day / $year \n"; > > > I was wondering if there's a smarter pattern to get the right value in > one single line. At least there's no simple "map" I can think of. > > Thanks, > Luca > > -- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > http://learn.perl.org/ > > > -- Regards, Chankey Pathak <http://www.technostall.com/>
