http://www.perlmonks.org?node_id=630416


in reply to Interprocess using Safe Pipes Opens

I struggled with this for quite a while until I decided to check the FAQ again after many years. This entry:

http://faq.perl.org/perlfaq8.html#How_do_I_start_a_pro

pointed me to IPC::Run, and other entries pointed me to IPC::Open2 and IPC::Open3. IPC::Run seems to allow all kinds of child creation and I/O redirection without having to start a shell or do your own forking. The examples at the beginning of the page are very helpful.