in reply to Perl.exe weird behavior on windows
well you could you try exec instead.
The exec function executes a system command and never returns-- use system instead of exec if you want it to return.
system does exactly the same thing as exec LIST, except that a fork is done first, and the parent process waits for the child process to complete.