in reply to If not fork(), then what ?

If you are using ActiveState perl (update: Ahh, I see you are), then Win32::Process is part of the standard distribution. You would create another perl process something like this:
Win32::Process::Create(my($procobj), "C:\\Perl\\bin\\perl.exe", "perl C:\\path\\to\\another_perl_script.pl", 0, NORMAL_PRIORITY_CLASS|CREATE_NO_WINDOW, ".", # path to working directory ) or die ErrorReport();
The third argument is supposed to be command line arguments, but for some reason you have to include 'perl' as well as any arguments. See the Win32::Process docs for the ErrorReport() function (which basically just regurgitates $^E).

Replies are listed 'Best First'.
Re: Re: If not fork(), then what ?
by BB_ (Initiate) on Sep 27, 2002 at 01:19 UTC
    It works !

    Thanks. The adding of 'perl' to the command line does the trick.