dealing with time - Page 2

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

Re: dealing with time

Peter J. Holzer wrote:
Quoted text here. Click to load it

$^T = time;
my $minutes_last_modified = 1440 * -M $file;

Perl isn't a toolbox, but a small machine shop where you
can special-order certain sorts of tools at low cost and
in short order.                            -- Larry Wall

Re: dealing with time

Quoted text here. Click to load it

Do you want to win some kind of obfuscation contest?

What's wrong with

my $sb = stat $file;
my $minutes_last_modified = (time - $sb->mtime) / 60;



Site Timeline