use POSIX qw(strftime); print strftime("The time is %H:%M\n", localtime);