I am looking for a simple Perl implementation that verifies a Google authenticator token that has been created using a server side secret. For instance,
Here's another solution, and you can verify it matches the tokens produced in this example
use Authen::OATH;
use Convert::Base32;
my $oath = Authen::OATH->new();
my $secret = "JBSWY3DPEHPK3PXP";
my $otp = $oath->totp( decode_base32( $secret ) );
print $otp."\n";