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
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
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($
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
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