in reply to "close" failing


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

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"