in reply to Executing external Programs

You need to redirect stderr:
open PIPE, "./foo.pl 2>&1 |";
2>&1 redirect stderr (2) to stdout (1)