On Mon, Nov 24, 2008 at 2:52 PM, André Warnier <[EMAIL PROTECTED]> wrote: > Can you do a "return" from a "require"-d file, and what does it do exactly ?
Doing an exit from a file during a require() is not normally a problem. Try it. It's kind of a bad programming practice, but Perl will tolerate it. I'm guessing the problem here had to with ModPerl::Util::exit which turns exit() into an exception rather than a real exit. It's actually probably harmless, but return is a better way to get out after sending a redirect. - Perrin