How Do You Tell Time in Perl?

K

kvnsmnsn

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

A. Sinan Unur

(e-mail address removed) wrote in @q5g2000prf.googlegroups.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
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
 
M

mmccaws2

(e-mail address removed) wrote in @q5g2000prf.googlegroups.com:


You have asked a self-answering question (SAQ):

perldoc -f time

You can find more athttp://www.ginini.com/perlsaq.html


perldoc perltoc
perldoc perlfaq
perldoc perlfunc

Do read the posting guidelines for this group.

Sinan

It's always time to do perl

sorry no serious answer
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,022
Latest member
MaybelleMa

Latest Threads

Top