How Do You Tell Time in Perl?
How Do You Tell Time in Perl?
am 03.11.2007 01:58:14 von 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_
Re: How Do You Tell Time in Perl?
am 03.11.2007 02:12:06 von 1usa
kvnsmnsn@hotmail.com wrote in news:1194051494.309489.161940
@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
--
A. Sinan Unur <1usa@llenroc.ude.invalid>
(remove .invalid and reverse each component for email address)
clpmisc guidelines:
Re: How Do You Tell Time in Perl?
am 03.11.2007 02:12:06 von 1usa
kvnsmnsn@hotmail.com wrote in news:1194051494.309489.161940
@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
--
A. Sinan Unur <1usa@llenroc.ude.invalid>
(remove .invalid and reverse each component for email address)
clpmisc guidelines:
Re: How Do You Tell Time in Perl?
am 03.11.2007 04:21:21 von mmccaws2
On Nov 2, 6:12 pm, "A. Sinan Unur" <1...@llenroc.ude.invalid> wrote:
> kvnsm...@hotmail.com wrote in news:1194051494.309489.161940
> @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 athttp://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
>
> --
> A. Sinan Unur <1...@llenroc.ude.invalid>
> (remove .invalid and reverse each component for email address)
> clpmisc guidelines:
It's always time to do perl
sorry no serious answer
Re: How Do You Tell Time in Perl?
am 03.11.2007 04:21:21 von mmccaws2
On Nov 2, 6:12 pm, "A. Sinan Unur" <1...@llenroc.ude.invalid> wrote:
> kvnsm...@hotmail.com wrote in news:1194051494.309489.161940
> @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 athttp://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
>
> --
> A. Sinan Unur <1...@llenroc.ude.invalid>
> (remove .invalid and reverse each component for email address)
> clpmisc guidelines:
It's always time to do perl
sorry no serious answer