19 lines
538 B
Diff
19 lines
538 B
Diff
Description: fix deprecated Perl function.
|
|
Author: Daniel Pimentel <d4n1@d4n1.org>
|
|
Last-Update: 2019-07-25
|
|
|
|
Old version of Ale show as fix it: Can't use 'defined(@array)'
|
|
(Maybe you should just omit the defined()?) at /usr/bin/ale line 45.
|
|
|
|
--- ale-0.9.0.3.orig/ale
|
|
+++ ale-0.9.0.3/ale
|
|
@@ -42,7 +42,7 @@ for $default (keys %defaults) {
|
|
# Wrap help page requests
|
|
#
|
|
|
|
-if (!defined @ARGV || @ARGV == 0 || $ARGV[0] =~ /^--h[a-zA-Z0-9]$/) {
|
|
+if (@ARGV || @ARGV == 0 || $ARGV[0] =~ /^--h[a-zA-Z0-9]$/) {
|
|
$ale_bin = $ENV{"ALE_BIN"};
|
|
|
|
#
|