http://www.perlmonks.org?node_id=1074456

JohnDi has asked for the wisdom of the Perl Monks concerning the following question:

I installed Apache::SSLLookup using cpanm today. The constructor and "is https" seem to work OK:
my $r = Apache::SSLLookup->new(shift);
my $is_ssl_request = $r->is_https;
But the lookup_var function
my $dn = $r->lookup_var('SSL_CLIENT_S_DN');
produces this error in the Apache logs:
Can't locate auto/Apache/SSLLookup/lookup_var.al in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 . /etc/httpd) at <my location>/AuthorizeSSL.pm 
Has the installation gone wrong somewhere? A Google search for "lookup_var.al" returns nearly nothing.

Any/All help appreciated

Thanks

Replies are listed 'Best First'.
Re: SSLLookup error
by JohnDi (Initiate) on Feb 11, 2014 at 20:50 UTC
    The module author informed me that the API changed and the docs reflect the old function. Function
    lookup_var
    was replace by
    ssl_lookup
    which works!