in reply to Re^3: "close" failing
in thread "close" failing

I tried this, and it doesn't work as you described: If Perl can't find the program to be piped to, the open command fails.

Remember: There's always one more bug.