Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: open won't die

by YuckFoo (Abbot)
on Oct 29, 2003 at 19:13 UTC ( [id://303082]=note: print w/replies, xml ) Need Help??


in reply to open won't die

Here is a pointer to the best example I could find that throughly checks the success of the open(), close(), and the 'piped' program. It's a bit cumbersome. To my surprise it was documented on the close page. I haven't been there for a while.

YuckFoo

open(OUTPUT, '|sort >foo') # pipe to sort or die "Can't start sort: $!"; #... close OUTPUT # wait for sort to finish or warn $! ? "Error closing sort pipe: $!" : "Exit status $? from sort";

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2024-04-19 11:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found