Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: "close" failing

by liverpole (Monsignor)
on Oct 16, 2006 at 12:39 UTC ( #578482=note: print w/replies, xml ) Need Help??


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

The code jesuashok posted was simply copied verbatim from the example section of perldoc entry for close, even to the point of including the comment containing the ellipses "#...":
open(OUTPUT, '|sort >foo') # pipe to sort or die "Can't start sort: $!"; #... # print stuff to output close OUTPUT # wait for sort to finish or warn $! ? "Error closing sort pipe: $!" : "Exit status $? from sort"; open(INPUT, 'foo') # get sort's results or die "Can't open 'foo' for input: $!";

Refer to this node for further discussion of jesuashok's posting habits.


s''(q.S:$/9=(T1';s;(..)(..);$..=substr+crypt($1,$2),2,3;eg;print$..$/

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2020-06-03 17:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you really want to know if there is extraterrestrial life?



    Results (27 votes). Check out past polls.

    Notices?