CGI::Cookies problem

Tungyat Wong (ty.wong@utoronto.ca)
Mon, 4 Oct 1999 10:43:06 -0400


Hi all,

I am not sure anyone were having this problem before.. but my CGI just
failed to run after getting the input. here is the fragment of code:

my %cookies = fetch CGI::Cookie;
die "nothing" if (!%cookies);
print $cookies{'uid'}->value;


I want to print out the cookie with the name call "uid".. but the code just
return:

"Can't call method "value" without a package or object reference at
./viewfavorit
e.pl line 13."

what shall I do? Please give me some hints.. Thanks a lot..

Regards,
Winter