in reply to Formatting date strings (was: date +%Y%m%d)

Try the strftime function in the POSIX module.
use POSIX; print strftime("%Y%m%d", localtime);