in reply to Re^2: Local Date Format
in thread Local Date Format

You should check out POSIX::strftime, too. :)

use POSIX qw(strftime); print "mm/dd/yyyy:\t". strftime('%d/%m/%Y', localtime time) . $/; print "yyyymmdd_hhmm:\t". strftime('%Y%m%d_%H%M', localtime time) . $/ +;

These also have the benefit of zero-padding the date and time components, so they will sort correctly if used in a filename (for example).

mhoward - at - hattmoward.org