Try a lowercase d.
$permissions = $cgi->cookie(-name=>'test',
-value=>[%info],
-expires=>'+1d');
P.S. path='/' is the default for the cookies CGI.pm creates if no path is set.
Proof of concept:
#!/usr/bin/perl -wl use CGI qw(cookie); print "+1d: ",cookie(-name=>'test',-value=>'a',-expires=>'+1d'); print "+1D: ",cookie(-name=>'test',-value=>'a',-expires=>'+1D'); __DATA__ outputs: +1d: test=a; path=/; expires=Tue, 05-Aug-2003 06:15:38 GMT +1D: test=a; path=/; expires=Mon, 04-Aug-2003 06:15:39 GMT
For the record, it was Mon, 04-Aug-2003 06:15:38 GMT when I ran that.
Hope this helps.
antirice
The first rule of Perl club is - use Perl
The ith rule of Perl club is - follow rule i - 1 for i > 1
In reply to Re: cookie help
by antirice
in thread cookie help
by dopel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |