From: "A Taylor" <[EMAIL PROTECTED]> > Hello again, > I have a problem with cookies; I can retreive cookies i have set, but > if I try to retreive a cookie that hasnt yet been set i get the > following error: > > Can't call method "value" on an undefined value at viewcart.pl line > 55. > > I am trying to get my cookie using: $ID = $newcook{'usrID'}->value; > which works fine unless this cookie hasnt been set.
Well if the cookie doesn't exists how could it have any value? You have to check first whether exists $newcook{'usrID'}. Jenda ===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz ===== When it comes to wine, women and song, wizards are allowed to get drunk and croon as much as they like. -- Terry Pratchett in Sourcery -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>