summaryrefslogtreecommitdiffstats
path: root/MDK
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-12-04 14:21:51 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-12-04 14:21:51 +0000
commit8f48fd94bf41b4c062db2a32803c4abd22b81a33 (patch)
treef0caa15d4584f677dcb9437214574e9cf350b97c /MDK
parenta329f0c34eb3f9ec1ed4f699c2962ef1cc379a8a (diff)
downloadperl-MDK-Common-8f48fd94bf41b4c062db2a32803c4abd22b81a33.tar
perl-MDK-Common-8f48fd94bf41b4c062db2a32803c4abd22b81a33.tar.gz
perl-MDK-Common-8f48fd94bf41b4c062db2a32803c4abd22b81a33.tar.bz2
perl-MDK-Common-8f48fd94bf41b4c062db2a32803c4abd22b81a33.tar.xz
perl-MDK-Common-8f48fd94bf41b4c062db2a32803c4abd22b81a33.zip
more restricted detection of non-use of if_()-like exprs
Diffstat (limited to 'MDK')
-rw-r--r--MDK/Common/System.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/MDK/Common/System.pm b/MDK/Common/System.pm
index 7ef5fc7..c41485b 100644
--- a/MDK/Common/System.pm
+++ b/MDK/Common/System.pm
@@ -300,7 +300,7 @@ sub setVarsInShMode {
@fields = keys %$l unless @fields;
MDK::Common::File::output($file,
- map { $l->{$_} ? "$_=$l->{$_}\n" : @{[]} } @fields
+ map { $l->{$_} ? "$_=$l->{$_}\n" : () } @fields
);
chmod $mod, $file;
}
@@ -310,8 +310,8 @@ sub setExportedVarsInSh {
@fields = keys %$l unless @fields;
MDK::Common::File::output($file,
- (map { $l->{$_} ? "$_=$l->{$_}\n" : @{[]} } @fields),
- @fields ? "export " . join(" ", @fields) . "\n" : @{[]},
+ (map { $l->{$_} ? "$_=$l->{$_}\n" : () } @fields),
+ @fields ? "export " . join(" ", @fields) . "\n" : (),
);
}
@@ -319,7 +319,7 @@ sub setExportedVarsInCsh {
my ($file, $l, @fields) = @_;
@fields = keys %$l unless @fields;
- MDK::Common::File::output($file, map { $l->{$_} ? "setenv $_ $l->{$_}\n" : @{[]} } @fields);
+ MDK::Common::File::output($file, map { $l->{$_} ? "setenv $_ $l->{$_}\n" : () } @fields);
}
sub template2file {