in reply to perl file formatting

Your post is incomprehensible due to the formatting.
Please enclose fixed field stuff within <code>...</code> tags. That will show where one line ends and another begins.

See Markup in the Monastery for description of other tags.

Update: I see that you updated the code tags. Thanks!
Another Perl module to consider is Date::Time.