Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

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

-- vek --

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://552875]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2017-12-12 22:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (340 votes). Check out past polls.

    Notices?