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.


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority". I knew I was on the right track :)
In the absence of evidence, opinion is indistinguishable from prejudice.