I've got a nasty little piece of code that takes the directory path and file name, joins them, and then gets the time using stat and local time. My question is: Is there a "prettier way" to do the following:
my $prettyFileTime = localtime((stat(join('/', $dir, $file)))[9])