Thanks for the reply Thomas,
> Why not let determine_proper_action() return undef (or OK, or whatever) if
> you do not want to redirect? And in your handler do:
>
> my $rv=determine_proper_action();
> if ($rv) { # or ($rv == Apache::Constants::OK)
> # redirect
> } else
> # done
>
Hi!
On Mon, Aug 18, 2003 at 08:07:30 -0400, Chris Faust wrote:
> Example To Help Explain:
>
> sub handler {
> $r = shift;
>
> init_global_vals();
>
> $back_url = determine_proper_action();
>
> my $back_url = "";
> $r->headers_out->set(Location => $back_url);
>
> return Apache::REDIRECT;
Folks,
In the continuing effort to make my code better,
I'm trying to get rid "exit" in my scripts and clean up some things that
just don't sit well (but they work).
Almost 95% of my pages are served up via a template
system (H::T) and the rest are a redirects.
Currently I use a subroutin