I am using mod_perl and I'm qx()'ing in the handler function. The trouble is $? doesn't seem to represent the exit code of the program qx()'ed.
Has anyone else seen this? Is there a way around it? I really need the STDOUT and if possible STDERR of the program but I do not want to resort to writing to a file and using system()
P.S. Please note that I have tried IPC::Open2,IPC::Open3 and open(RET,"prg |") with waitpid to no avail.