in reply to Apache::Cookie

My bet is that passing along arguments to the superclass constructor will help:
sub new { my $class = shift; return $class->SUPER::new(@_); }
Otherwise, there's no Apache::Request object from which to pull a cookie.

Replies are listed 'Best First'.
Re: Re: Apache::Cookie
by deprecated (Priest) on Mar 22, 2001 at 09:32 UTC
    Pardon my interjection, brother chromatic, but doesnt damian conway use
    sub new { return $class = $_[0] -> SUPER::new(@_[1..$#_]); }
    Doesnt that seem a little clearer and more concise?

    brother dep

    --
    Laziness, Impatience, Hubris, and Generosity.

      Whether it's clearer is subjective, I think. Note that the assignment to $class is unnecessary (and misleading).
Re: Re: Apache::Cookie
by BMaximus (Chaplain) on Mar 22, 2001 at 09:53 UTC
    I misstated my problem. I was getting an error that it couldn't locate object 'new' via package "SessionCookie". It seems that I do need to put a
    use Apache::Cookie;
    before @SessionCookie::ISA = qw( Apache::Cookie );
    after I did that SUPER worked just fine.

    Thanks for the help though,
    BMaximus