No strict refs when assigning to a glob
git-svn-id: https://svn.perl.org/qpsmtpd/branches/0.31@551 958fd67b-6ff1-0310-b445-bb7760255be9
This commit is contained in:
parent
b808a139cf
commit
111afb91db
@ -44,6 +44,7 @@ sub init {
|
|||||||
|
|
||||||
# Check for possible AUTH mechanisms
|
# Check for possible AUTH mechanisms
|
||||||
HOOK: foreach my $hook ( keys %{$qp->{hooks}} ) {
|
HOOK: foreach my $hook ( keys %{$qp->{hooks}} ) {
|
||||||
|
no strict 'refs';
|
||||||
if ( $hook =~ m/^auth-?(.+)?$/ ) {
|
if ( $hook =~ m/^auth-?(.+)?$/ ) {
|
||||||
if ( defined $1 ) {
|
if ( defined $1 ) {
|
||||||
my $hooksub = "hook_$hook";
|
my $hooksub = "hook_$hook";
|
||||||
|
Loading…
Reference in New Issue
Block a user