I am having trouble with Apache::Cookie. I keep getting errors like:
Can't locate object "new" via package "Apache::Cookie"....
The code looks like:
sub session { my $self = shift;
return $self->{_session} if ($self->{_session}); my %cookie = Apache::Cookie->new($self->query)->parse; my %session; if ($cookie{_session_id}) { # we have a valid cookie tie %session, 'Apache::Session::PostgreSQL', $session_id; } else { # new session needed tie %session, 'Apache::Session::PostgreSQL'; } $self->{_session} = \%session; return \%session; }
Looking at the source:
http://search.cpan.org/src/STAS/libapreq-1.33/Cookie/Cookie.pm
I see very little code. What is the magic? What am I missing?
Using mod_perl 1.33 on macos.
Thanks, Sean
-- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html