> "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
> ## 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