in reply to Re: (jeffa) Re: CGI.pm error
in thread CGI.pm error
Just name it foo.cgi or something and run it from a browser that accepts cookies. Hope this helps. :)use strict; use warnings; use CGI qw(:standard); use CGI::Cookie; my @views = qw(first second third fourth fifth sixth seventh eighth); my %cookies = CGI::Cookie->fetch(); my $x = (defined $cookies{'cookie_i'}) ? $cookies{'cookie_i'}->value() : 0 ; my $view = $views[$x++]; my $cookie = CGI::Cookie->new(-name=>'cookie_i',-value=>$x % @views); print header(-cookie=>$cookie), start_html('session'), h1($view), start_form, submit, end_form, end_html ;
jeffa
L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (jeffa) 3Re: CGI.pm error
by webstudioro (Acolyte) on Jul 12, 2003 at 07:54 UTC | |
by bart (Canon) on Jul 12, 2003 at 12:15 UTC | |
by jeffa (Bishop) on Jul 12, 2003 at 12:00 UTC | |
by webstudioro (Acolyte) on Jul 12, 2003 at 15:10 UTC | |
by webstudioro (Acolyte) on Jul 12, 2003 at 15:14 UTC | |
by webstudioro (Acolyte) on Jul 12, 2003 at 16:25 UTC | |
by webstudioro (Acolyte) on Jul 12, 2003 at 17:32 UTC | |
by jeffa (Bishop) on Jul 12, 2003 at 18:43 UTC | |
by webstudioro (Acolyte) on Jul 13, 2003 at 09:11 UTC |