[Omaha.pm] Less is more

Jay Hannah jay at jays.net
Thu Dec 22 10:22:09 PST 2005


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


More information about the Omaha-pm mailing list