$query->cookie returns a scalar, not a hash.
I'm not sure if the scalar it returns is a value or
a refrence to a hash. But a quick scan of the docs
leads me to belive it's the latter (it's early here and I'm
not really awake yet).
In which case you can access it's attributes like
my $value = $cookie->{-value};
my $expires = $cookie->{-expires};
Hope this helps...
/\/\averick