Re: Question about Modperl::Util::exit

2008-11-24 Thread Perrin Harkins
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

Re: Question about Modperl::Util::exit

2008-11-24 Thread André Warnier
Perrin Harkins wrote: On Thu, Nov 20, 2008 at 4:50 PM, Bruce Johnson <[EMAIL PROTECTED]> wrote: This happens when the exit is triggered in the nested require file. which is code like this: # Check to see if the person was logged in, and if not go to login page and # pass the url and parameters

Re: Question about Modperl::Util::exit

2008-11-24 Thread Perrin Harkins
On Thu, Nov 20, 2008 at 4:50 PM, Bruce Johnson <[EMAIL PROTECTED]> wrote: > This happens when the exit is triggered in the nested require file. which is > code like this: > > # Check to see if the person was logged in, and if not go to login page and > # pass the url and parameters > if (!defined($

Re: Question about Modperl::Util::exit

2008-11-21 Thread André Warnier
Bruce Johnson wrote: We just moved some cgi scripts over from an ancient system to our new server running modperl. We have require files (that themselves have require files) that check cookies and login status for these scripts. If someone is not logged in, this triggers an exit our of one o

Question about Modperl::Util::exit

2008-11-20 Thread Bruce Johnson
We just moved some cgi scripts over from an ancient system to our new server running modperl. We have require files (that themselves have require files) that check cookies and login status for these scripts. If someone is not logged in, this triggers an exit our of one of the require file