mirror of
https://github.com/perlbot/perlbuut
synced 2025-06-07 20:55:39 -04:00
Fix warningss for other perls
This commit is contained in:
parent
b23cd769c1
commit
0a5546d01f
1 changed files with 2 additions and 2 deletions
|
@ -122,8 +122,8 @@ sub command {
|
||||||
my $c=$1;
|
my $c=$1;
|
||||||
my $v=$2;
|
my $v=$2;
|
||||||
my $all = $3;
|
my $all = $3;
|
||||||
$code = "use warnings; ".$code if ($c =~ /w/ && ($v>=6 || $all));
|
$code = "use warnings; ".$code if ($c =~ /w/ && ($v>=6 || !defined $v || $all));
|
||||||
$code = '$^W=1;'.$code if ($c =~ /w/ && ($v < 6 && !$all));
|
$code = '$^W=1;'.$code if ($c =~ /w/ && (defined $v && $v < 6 && !$all));
|
||||||
$code = "use strict; ".$code if ($c =~ /s/);
|
$code = "use strict; ".$code if ($c =~ /s/);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue