I need to call an external program from perl,pass it in data and pull back results. This looks like what IPC::Open2 was built for.
I can not seem to work out how to trap errors such as the program not existing or not being executable(or other random stuff such as missing libs). The pod seems to indicate a SIGPIPE signal will happen but the only signal perl is getting is a SIGCLD and this happens for both successful and unsuccessful executions. Is it possible to trap bad executions or will I just have to hope it works?
If this is the best IPC::Open2 can do are there any other core modules that can handle the job better?