Subject: | Documentation is incorrect for msginfo |
Date: | Mon, 20 Oct 2008 17:48:39 -0700 |
To: | bug-Crypt-GPG [...] rt.cpan.org |
From: | Robert L Mathews <rob [...] tigertech.com> |
The msginfo() function requires an arrayref. However, the documentation
describes the parameters as either a scalar:
my @recipients = $gpg->msginfo($encrypted);
Or as a list:
msginfo(@ciphertext)
Neither of these examples will work because they aren't arrayrefs. It
actually requires something like this to work:
my @recipients = $gpg->msginfo([$encrypted]);
... which I found very confusing. It would seem better to have it take a
scalar (or list), as documented.
--
Robert L Mathews