in reply to best way to write code
None of the above.
You should either use sprintf or POSIX::strftime
/J\