Perl Capture and Modify STDERR before it prints to a file
- by MicrobicTiger
I have a perl script which performs multiple external commands and prints the outputs from STDERR and STDOUT to a logfile along with a series of my own print statements to act as documentation on the process.
My problem is that the STDERR repeats ~identical prints as example below. I'd like to capture this before it prints and replace with the…