in reply to Re: How to make... - Thankyou people
in thread How to make my script to more than one thing at once?
fork works fine under Win32, but if you want to use system and don't want lots of CMD windows, just use the /B (for background) option on the start command and /c on cmd to make the cmd sessions 'go away' of their own volition.
system( 'start /b cmd /c your_command' );
If you have 5.8 then you can also use threads, the async() function makes this very easy. The following line will do a dir for each subdirectory below your current directory asynchronously.
use threads; async( sub{ system "dir $_" } ) for grep -d, glob '.\*';
Not a very convincing demo, but it does work.
|
|---|