in reply to Invoke multiple applications

#! perl -slw use strict; use threads qw[ async ]; my @threads; push @threads, async{ system '\path\to\first.exe' }; push @threads, async{ system '\path\to\second.exe' }; $_->join for @threads;

See the docs for threads, and the async() function for more details.

There is also an (undocumented?) option to the system command (on Win32?) that detaches the command run and doesn't wait.

system 1, '\path\to\your.exe';

The caveat with this is that once started, your script no longer retains any control over the app and doesn't recieve notification of it finishing.


Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"Think for yourself!" - Abigail
"Memory, processor, disk in that order on the hardware side. Algorithm, algorithm, algorithm on the code side." - tachyon