in reply to Crypt::GPG error

I think 1.52 is borked. Looking at the source of the module, the author is pretty good about checking whether $self->{SECRETKEY} is a reference or not. However, on line 176, the author doesn't check and just uses it as a reference:
if ($2 eq $self->{SECRETKEY}->{ID}) {
That seems to be what produced your error message. A simple fix would be to change line 176 to this:
if ($2 eq (ref($self->{SECRETKEY}) ? $self->{SECRETKEY}->{ID} : $self- +>{SECRETKEY}) ) {

Replies are listed 'Best First'.
Re^2: Crypt::GPG error
by jfroebe (Parson) on Aug 30, 2005 at 17:07 UTC
    An email to the author of the module may be in order with the fix. :)

    Jason L. Froebe

    Team Sybase member

    No one has seen what you have seen, and until that happens, we're all going to think that you're nuts. - Jack O'Neil, Stargate SG-1

      Good idea, will do.
Re^2: Crypt::GPG error
by Anonymous Monk on Aug 31, 2005 at 05:20 UTC
    This fixes the error, unfortunately the value returned by $gpg->verify() is now always null! I think 1.52 is seriously borked.

    While I'm certain this will continue to be an edifying experience, my immediate objective is to get my srcript running again; is there a way to go back to 1.42?
      Oops- forgot to sign in. ;)