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.
Does in fact die on open with Died with: No such file or directory.#!/usr/bin/perl -w use strict; open(BAD, "/no-such-path/not_here.sh |") || die "Died with: $!\n"; close(BAD);
--
vek
--
|
---|
In Section
Seekers of Perl Wisdom