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


in reply to Re^3: Capture response from backticks to a file.
in thread Capture response from backticks to a file.

You are right, I am over complicating things, I can just use this instead and get it over with:
system("gpg --trust-model always -er 12345678 my_file.txt 1>/dev/null +");