X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=lib%2FApache2%2FAuthzCaps.pm;h=b0ccffc4da58bab532475e4279cd862be9e7bcf3;hb=759435399ec772d303582c4040bba5adf3cfe66b;hp=ac16d17d0cf2b4bbdb3b1c9e0f91ef497f83b129;hpb=7442fd06706749adbd1e9e371c4cc9d23fe2ecc1;p=apache2-authzcaps.git diff --git a/lib/Apache2/AuthzCaps.pm b/lib/Apache2/AuthzCaps.pm index ac16d17..b0ccffc 100644 --- a/lib/Apache2/AuthzCaps.pm +++ b/lib/Apache2/AuthzCaps.pm @@ -3,10 +3,12 @@ package Apache2::AuthzCaps 0.001; use 5.014000; use strict; use warnings; +use subs qw/OK DECLINED/; +no if $] >= 5.017011, warnings => 'experimental::smartmatch'; -use Apache2::Access; -use Apache2::Const qw/OK DECLINED/; -use Apache2::RequestRec; +use if $ENV{MOD_PERL}, 'Apache2::Access'; +use if $ENV{MOD_PERL}, 'Apache2::Const' => qw/OK DECLINED/; +use if $ENV{MOD_PERL}, 'Apache2::RequestRec'; use YAML::Any qw/LoadFile DumpFile/; use parent qw/Exporter/;