Change qw() to qw[] in warn_level()
This commit is contained in:
parent
d3ec361ab8
commit
1d01a85542
@ -101,7 +101,7 @@ sub warn_handler {
|
|||||||
sub warn_level {
|
sub warn_level {
|
||||||
my ( $self, @warnings ) = @_;
|
my ( $self, @warnings ) = @_;
|
||||||
my @levels = ( keys %Qpsmtpd::Constants::log_levels,
|
my @levels = ( keys %Qpsmtpd::Constants::log_levels,
|
||||||
qw( LOGWARNING LOGCRITICAL LOGEMERGENCY ) );
|
qw[ LOGWARNING LOGCRITICAL LOGEMERGENCY ] );
|
||||||
my $levels = join '|', map { s/^LOG//; $_ } @levels;
|
my $levels = join '|', map { s/^LOG//; $_ } @levels;
|
||||||
$warnings[0] =~ s/^($levels):\s*//;
|
$warnings[0] =~ s/^($levels):\s*//;
|
||||||
my $prefix = $1;
|
my $prefix = $1;
|
||||||
|
Loading…
Reference in New Issue
Block a user