On Jun 24, [EMAIL PROTECTED] contorted a few electrons to say...
Philip> Sometimes, I write a script that goes like this:
Philip> 
Philip> <html>
Philip> <head>
Philip> <title>...</title>
Philip> </head>
Philip> <body>
Philip> (a little text here)
Philip> <%
Philip>     if (some condition) {
Philip>         $Response->Redirect('some url');
Philip>     }
Philip> %> ...
Philip> 
Philip> When the Redirect path is taken, am I making Apache::ASP do wasted work in
Philip> writing out that text and then clearing the buffer again? If yes, is this
Philip> significant? (I noticed that PHP is not so nice if I try to do something
Philip> similar; it'll just complain that headers have already been sent out.)

although you may not care about this, one difference
between Apache::ASP and PerlScript is that 
under PerlScript code after the $Response->Redirect is
executed unless you add

    if (some condition) { 
        $Response->Redirect('some url');        
+       $Response->End();
+       exit(0);
    }

jr

-- 
------------------------------------------------------------------------
Joel W. Reed                                                412-257-3881
--------------All the simple programs have been written.----------------


PGP signature

Reply via email to