in reply to Re^3: Perl Pipeline exception handling
in thread Perl Pipeline exception handling
I haven't tested this, but I believe that if you (re)open stderr to point to your logfile, and each of your subscripts simply write to stderr, then all the output will end up in the log file.
You could also pass the name of the file as an argument to each of the subscripts and have each of them open it individually; though -- on windows at least -- you would have to close it in your main script before calling the subscripts.
Actually passing file handles between separate processes doesn't work.
|
|---|