Great, thanx. That got me on the right track. I also printed @error_output and @status_info which helped me find out I also had to fix the path to include the .gnupg directory for homedir.
The perldoc in that module has a bunch of errors and typos, made it much harder.