Bookmarks

Yahoo Gmail Google Facebook Delicious Twitter Reddit Stumpleupon Myspace Digg

Search queries

/proc/kallsyms format, sqldatasource dal, wwwxxxenden, convert raid5 to raid 10 mdadm, apache force chunked, nrao wwwxxx, xxxxxdup, procmail change subject header, wwwXxx not20, Wwwxxx.doks sas

Links

XODOX
Impressum

#1: How Do You Tell Time in Perl?

Posted on 2007-11-03 01:58:14 by 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_

Report this message

#2: Re: How Do You Tell Time in Perl?

Posted on 2007-11-03 02:12:06 by 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: <URL:http://www.augustmail.com/~tadmc/clpmisc.shtml>

Report this message

#3: Re: How Do You Tell Time in Perl?

Posted on 2007-11-03 02:12:06 by 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: <URL:http://www.augustmail.com/~tadmc/clpmisc.shtml>

Report this message

#4: Re: How Do You Tell Time in Perl?

Posted on 2007-11-03 04:21:21 by 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: <URL:http://www.augustmail.com/~tadmc/clpmisc.shtml>

It's always time to do perl

sorry no serious answer

Report this message

#5: Re: How Do You Tell Time in Perl?

Posted on 2007-11-03 04:21:21 by 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: <URL:http://www.augustmail.com/~tadmc/clpmisc.shtml>

It's always time to do perl

sorry no serious answer

Report this message