in reply to Reading cookie expired date
And then call the sub as follows:sub write_cookies{ my ($username, $password, $regtype, $expires) = @_; print "Set-Cookie: reguser=$username; expires=$expires; path=/;\n +"; print "Set-Cookie: regpass=$password; expires=$expires; path=/;\n +"; print "Set-Cookie: regtype=$regtype; expires=$expires; path=/;\n" +; }
write_cookies($username, $password, $regtype, calc_cookie_expires(-1)) +;
CountZero
A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James
My blog: Imperial Deltronics
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Reading cookie expired date
by htmanning (Friar) on Apr 08, 2012 at 19:29 UTC |