Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Overloading CGI::redirectby perlmonkey (Hermit) |
on Apr 10, 2004 at 05:23 UTC ( [id://344083]=note: print w/replies, xml ) | Need Help?? |
As others have said, use SUPER. A more obscure option is to alias the CGI::redirect function, something like:
Update: I forgot to mention that instead of SUPER, you can also always use the full class name. You were close, but instead of CGI::redirect($self, $uri) you should use $self->CGI::redirect($uri). This is useful (necessary) if you use multiple inheritance and both parent classes defined the same subroutine. So if you had:
In Section
Seekers of Perl Wisdom
|
|