It's all fork under the hood.
The choice depends on what you want. If you need output back from the process, use backticks or qx(). If the call is for its effects on the system, system. Both those put your program to sleep until the child exits.
If you need fancier I/O with the process, call magic open, or one of the Open2, Open3 modules. Use fork when what you want requires fancier setup or logic than the others can provide.
After Compline,
Zaxo
In reply to Re: Avoiding fork
by Zaxo
in thread Avoiding fork
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |