http://www.perlmonks.org?node_id=552769


in reply to "close" failing

Hi

The problem is because of Pipe. There is no wait specified to finish "abc.sh".

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";
Please refere the above code and comment. If you use warn you will get the error in server logs as well.

"Keep pouring your ideas"