in reply to perl Expect; "set home"
On the gpg command you can add '--homedir "./.gnupg"', which must already exist.
Good Luck
"Well done is better than well said." - Benjamin Franklin