in reply to How can I run a piece of code asyncronously in Perl?
This will fork the program and start your command in the child process (where fork returns 0).if (fork==0) { exec qw{t1.pl arg1 arg2 arg3}; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How can I run a piece of code asyncronously in Perl?
by Anonymous Monk on Nov 03, 2012 at 19:04 UTC |