Discussion:
How Do You Tell Time in Perl?
(too old to reply)
k***@hotmail.com
2007-11-03 00:58:14 UTC
Permalink
I need to write a couple of Perl scripts that operate on a cache, and
the page replacement policy for this cache is Least Recently Used,
which means I need to record a time value for each entry in the cache.
How can one tell what the time is in Perl, so that each time I access
one of these entries I can modify its timestamp? Any information on
this would be greatly appreciated.

I know that I can find out how Perl works with the "perldoc" command,
but that command expects a module name as an argument, and I have no
idea which module has to do with telling time.

---Kevin Simonson

"You'll never get to heaven, or even to LA,
if you don't believe there's a way."
from _Why Not_
A. Sinan Unur
2007-11-03 01:12:06 UTC
Permalink
Post by k***@hotmail.com
How can one tell what the time is in Perl,
You have asked a self-answering question (SAQ):

perldoc -f time

You can find more at http://www.ginini.com/perlsaq.html
Post by k***@hotmail.com
I know that I can find out how Perl works with the "perldoc" command,
perldoc perltoc
perldoc perlfaq
perldoc perlfunc

Do read the posting guidelines for this group.

Sinan
--
A. Sinan Unur <***@llenroc.ude.invalid>
(remove .invalid and reverse each component for email address)
clpmisc guidelines: <URL:http://www.augustmail.com/~tadmc/clpmisc.shtml>
mmccaws2
2007-11-03 03:21:21 UTC
Permalink
Post by A. Sinan Unur
Post by k***@hotmail.com
How can one tell what the time is in Perl,
perldoc -f time
You can find more athttp://www.ginini.com/perlsaq.html
Post by k***@hotmail.com
I know that I can find out how Perl works with the "perldoc" command,
perldoc perltoc
perldoc perlfaq
perldoc perlfunc
Do read the posting guidelines for this group.
Sinan
--
(remove .invalid and reverse each component for email address)
clpmisc guidelines: <URL:http://www.augustmail.com/~tadmc/clpmisc.shtml>
It's always time to do perl

sorry no serious answer

Loading...