Verify GPG file signature with Perl
问题 I want to verify a GPG signed file (Verify archive.tar.gz with archive.tar.gz.sign). ATM I simply call gpg directly and parse the exit code and output. While this is a works-for-me solution, I figure there must be a nicer way to do this in a more perlish way. But as a programming novice I fail to understand how I can use the GPG CPAN modules. Any hints are much appreciated! 回答1: The GnuPG module on CPAN contains this in the synopsis: use GnuPG qw( :algo ); my $gpg = new GnuPG(); $gpg->verify(