Possible Duplicate:
How can I run Perl system commands in the background?
I have a simple Perl program that triggers another process, dependent on the outcome of an if statement. However, I cannot continue sending commands until the triggered process is complete. I presume this is because the 'system' function waits for a return value of the process before continuing.
while (bla bla bla) {
if (command is bla) {
system("osascript 'something.app'");
} else {
print $client "invalid command\r\n";
}
} continue {
…etc
In short, my script won't continue until it hears something back from something.app. Any way round this?