Re: CGI::Cookie Reading.

2005-03-29 Thread Randal L. Schwartz
> "Sara" == Sara <[EMAIL PROTECTED]> writes: Sara> IF the cookie already exists the script reads the value Sara> perfectly, but if cookie doesn't exist or I mean for the first Sara> time visitor, it gives error: "Can't call method "value" on an Sara> undefined value" Ahh, the classic cookie

Re: CGI::Cookie Reading.

2005-03-29 Thread Lawrence Statton
> ## READ-COOKIE.CGI ### > > #!/usr/bin/perl > use CGI; > use CGI::Cookie; > use CGI::Carp qw(fatalsToBrowser); > use strict; > use warnings; > > my %cookies =3D fetch CGI::Cookie; > my $cookies; > my $id =3D $cookies{'ID'}->value; > > IF the cooki

CGI::Cookie Reading.

2005-03-29 Thread Sara
## SET-COOKIE.cgi ## #!/usr/bin/perl use CGI qw/:standard/; use CGI::Cookie; use CGI::Carp qw(fatalsToBrowser); use strict; use warnings; my $c = new CGI::Cookie(-name => 'ID', -value => '987654321', -domain => '.domain.com', -expires => '+3M', -path => '/'