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}; }
In reply to Re: How can I run a piece of code asyncronously in Perl?
by aitap
in thread How can I run a piece of code asyncronously in Perl?
by Doctrin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |