|Subject:||Crypt::X509 should not export error(), new(), not_before(), not_after(), or serial()|
|Date:||Fri, 11 Mar 2011 01:18:31 -0500|
|To:||bug-Crypt-X509 [...] rt.cpan.org|
|From:||Daniel Kahn Gillmor <dkg [...] fifthhorseman.net>|
The attached simple demonstration program produces a spurious warning because of subroutines needlessly exported by Crypt::X509: Show quoted text
> 0 dkg@pip:~$ ./demo-new.pl > Subroutine new redefined at ./demo-new.pl line 8. > 0 dkg@pip:~$The documentation makes no claims that it will export any subroutines by default, but X509.pm contains: our @EXPORT = qw(error new not_before not_after serial); I believe these should all be removed from @EXPORT. Is there reason to believe these symbols are expected to be exported? It would be good to be able to do things like: use Crypt::X509; in other modules that also define subs named new() or error() without seeing these warnings. Does this make sense? Or is there some reason i'm missing for these items are exported and the others are not? --dkg
Message body is not shown because sender requested not to inline it.
Message body not shown because it is not plain text.