http://www.perlmonks.org?node_id=552875


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

I'm not entirely sure that's correct. For my test code, if the program cannot be found, open will not succeed.

#!/usr/bin/perl -w use strict; open(BAD, "/no-such-path/not_here.sh |") || die "Died with: $!\n"; close(BAD);
Does in fact die on open with Died with: No such file or directory.

-- vek --