Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: chop and CGI.pm cookie problem?

by skyknight (Hermit)
on Jul 31, 2003 at 18:51 UTC ( [id://279715]=note: print w/replies, xml ) Need Help??


in reply to chop and CGI.pm cookie problem?

My eyes are veritably crossing and dilating trying to look at your get_timestamp function... Wouldn't everything be incredibly simpler if you did it all with seconds, storing times as seconds since the epoch, durations as periods of seconds, and just performing a simple mathematical subtraction to figure out whether something had expired? Maybe I'm missing something, but I think you're passing up an opportunity to do something simple simply, giving rise, as you've noticed, to more opportunities for code defects.

Replies are listed 'Best First'.
Re: Re: chop and CGI.pm cookie problem?
by michellem (Friar) on Jul 31, 2003 at 19:26 UTC
    It might be easier if I hadn't gotten so used to using Date::Calc to calculate dates (for a different project), so that's my habit.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://279715]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (7)
As of 2024-04-23 17:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found