Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re^4: "close" failing

by vek (Prior)
on May 31, 2006 at 17:21 UTC ( #552875=note: print w/ replies, xml ) Need Help??

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/ |") || die "Died with: $!\n"; close(BAD);
Does in fact die on open with Died with: No such file or directory.

-- vek --

Comment on Re^4: "close" failing
Select or Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://552875]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (11)
As of 2015-11-25 16:51 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (683 votes), past polls