Why not print out the error string $! to see what's failing?
In reply to Re: Perl open pipe exiting early by RichardK in thread Perl open pipe exiting early by albob