You almost have it.
You just need to pass the return value from
localtime instead of the filename to
perl -MPOSIX -e 'printf "%s %s
", $_, strftime("%d %b %Y %H:%M", localtime((lstat))) for @ARGV'
file.txt 10 Oct 2014 15:38
And even though it takes more code, I'd lean toward using
File::stat to make the code more modern and
perl -MTime::Piece -MFile::stat -e '
printf "%s %s
", $_, localtime( stat($_)->mtime )->strftime("%d %b %Y %H:%M") for