The example that was given to you is the guts of what you are asking for.

Take the code that was given to you by mr_mischief, and save it in a file (lets call it foo.pl). Then just pass your input file through that, ie:

perl foo.pl < infile > outfile
Although, you will probably want to change the line:
print (gmtime $_);
to read:
print scalar gmtime($_);
Or alternatively, if you want your output in local time, then:
print scalar localtime($_);
Hope this helps,
Darren

In reply to Re^3: changing date format in and out by McDarren
in thread changing date format in and out by gio001

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":