http://qs1969.pair.com?node_id=591185


in reply to Seeking an example of Time::Period usage

Hi, I am attempting to learn Perl. I would like to ask where in the script dt->epoch would go?

I do not quite understand the remedy. Thank you.

  • Comment on Re: Seeking an example of Time::Period usage

Replies are listed 'Best First'.
Re^2: Seeking an example of Time::Period usage
by syphilis (Archbishop) on Dec 22, 2006 at 00:18 UTC
    I would like to ask where in the script dt->epoch would go?

    You would replace $dt->datetime with $dt->epoch (a few lines up from the end of the original code).

    Cheers,
    Rob