in reply to Overloading CGI::redirect

The way to call the superclass method is like this:
sub redirect { my ($self, $uri) = @_; $self::SUPER->redirect($uri); exit(0); }

Replies are listed 'Best First'.
Re: Re: Overloading CGI::redirect
by Anonymous Monk on Apr 10, 2004 at 03:35 UTC
    Where'd you learn $self::SUPER->method? I don't think that works.
      I got the syntax wrong. It should be $self->SUPER::method(),