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


in reply to record every backtick on STDOUT or some log file

Unfortunately, I think the simplest way to make this happen is to bite the bullet and mod the code. Assuming the commands are not too full of special characters, you should be able to get away with running a backup of the file through s/`([^`]*)`.*?;\K/print \$log qq{$1};/g; to automatically add print statements after all backticks. Obviously, you'll have to open the $log filehandle.

Alternatively, you could hack a version of perl to output everything passed to backticks...

#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.