esskar has asked for the wisdom of the Perl Monks concerning the following question:
How do i overload the redirect function so it is working?package lib::CGI; use strict; use warnings; require CGI; use vars qw(@ISA); @ISA = qw( CGI ); sub redirect { my ($self, $uri) = @_; # print "Location: $uri\n\n"; # works but is nor nice # CGI::redirect($self, $uri); # does not work # $self->redirect($uri); # endless loop # i need help exit(0); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Overloading CGI::redirect
by nothingmuch (Priest) on Apr 10, 2004 at 01:04 UTC | |
|
Re: Overloading CGI::redirect
by iburrell (Chaplain) on Apr 10, 2004 at 00:10 UTC | |
by Anonymous Monk on Apr 10, 2004 at 03:35 UTC | |
by iburrell (Chaplain) on Apr 13, 2004 at 17:18 UTC | |
|
Re: Overloading CGI::redirect
by perlmonkey (Hermit) on Apr 10, 2004 at 05:23 UTC |