[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Omaha.pm] Less is more



Ryan Stille wrote:
I am was trying to get this done in one line, just for the heck of it.
I need the modification time of a file referenced by $file ($file
contains the path and filename of the file).

I don't know how to get that strftime thing working...

my ($y, $m, $d) = (localtime((stat($file))[9]))[5,4,3];
$y += 1900;

?

j