T
Tuxedo
I would like to return the date and use in daily file names as in
somefile-2009-09-03.txt etc. Anyway. the date part is where I got stuck....
Where in a Bash shell I would simply do: ...
date +%Y-%m-%d
.... to return 2009-09-03
How could the same be done in a fairly short Perl code and without use of
modules? (I guess by the localtime builtin procedures).
Any examples would be much appreciated.
Thanks,
Tudedo
somefile-2009-09-03.txt etc. Anyway. the date part is where I got stuck....
Where in a Bash shell I would simply do: ...
date +%Y-%m-%d
.... to return 2009-09-03
How could the same be done in a fairly short Perl code and without use of
modules? (I guess by the localtime builtin procedures).
Any examples would be much appreciated.
Thanks,
Tudedo