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.
Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"When I'm working on a problem, I never think about beauty. I think only how to solve the problem. But when I have finished, if the solution is not beautiful, I know it is wrong." -Richard Buckminster Fuller
If I understand your problem, I can solve it! Of course, the same can be said for you.
|