On Mit, 2004-01-14 at 16:03, Gerald Richter wrote:
> >>> [Mon Jan 12 17:56:44 2004] [error] [6785]ERR:  24:  Error in Perl
> >>> code: Undefined subroutine &ModPerl::Util::exit called at
> >>> /home/tema/tema/TEMA.pm line 458.

> So try to put a
>
> use ModPerl::Util ;
> 
> in your module, that should fix the problem

In a way, it does... the error disappears.
It works, too, IF the method containing exit() is called from
the "top level page", meaning, not from a page called by Execute()
from another page.

So, if I do something like

index.ep:
        Execute("/var/www/some/path/page2.ep");

page2.ep:
        Blah1
        [-
        require Module;
        Module::test_exit();
        -]
        Blah2

Module.pm:
        (header stuff skipped)
        use ModPerl::Util;
        sub test_exit() { exit(); }
        1;

the stuff after test_exit() is still processed. And what's more,
I saw [+ ... +] passages as literal text on the page.

Anyway, if that's too esoteric, I can work around the problem
(using return codes and exit()ing from the page itself, mostly).
But it sure makes the code ugly.

- Torsten



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to