Bob Showalter wrote:
If you're running under Apache::Registry though, calling exit is OK.

If I have understood it correctly, it's not OK if Perl is older than 5.6. Therefore I'm using this sub:


    sub myexit {
        if ($ENV{MOD_PERL}) {
            if ($] < 5.006)  {
                require Apache;
                Apache::exit();
            }
        }
        exit;
    }

P.S. Thanks for showing a simple way to fork off a process. It will be useful to me as well.

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to