use POSIX qw/strftime/; print strftime("%y-%m-%d_%H:%M:%S", localtime);