"Philip M. Gollucci" <[EMAIL PROTECTED]> writes: > package Apache2::Cookie::Jar; > sub cookies { > > my $cookies = Apache2::Cookie->fetch(@_); > > ## iffy to return based on documentation from $cookies and @_ > > }
More or less. Something like this should work: sub cookies { return Apache2::Cookie->fetch(@_) if @_ == 2; my $cookies = Apache2::Cookies->fetch(@_); return wantarray ? keys %$cookies : $cookies; } Of course the real problem here is test coverage. We need more cookie tests to validate the code. -- Joe Schaefer