I am having a problem with GnuPG::Interface and cannot seem to find any specific resource for it (there seems to be a defunct or inactive list on perl.org but that is all). If this is not the appropriate place my apologies and if someone has a better forum please let me know.
I have installed GnuPG and it seems to be working fine. I then installed GnuPG::Interface in perl and wrote a script that tries to decrypt a file. Everything seems to be working fine and the file gets decrypted. My problem occurs when I try to run the script in background (cron or nohup). I get an error pointing to the line that calls the 'decrypt' method. It says "fh is not defined." I don't have a variable by that name so I don't have a clue what it is referring to other then it must be in the decrypt method somewhere. I tried setting $gnupg->options->batch(1); but that did not help. Can someone help me figure out what is wrong? Thanks.