in reply to Re^2: changing date format in and out
in thread changing date format in and out
The example that was given to you is the guts of what you are asking for.
Darren
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:
Although, you will probably want to change the line:perl foo.pl < infile > outfile
to read:print (gmtime $_);
Or alternatively, if you want your output in local time, then:print scalar gmtime($_);
Hope this helps,print scalar localtime($_);
Darren
In Section
Seekers of Perl Wisdom