diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2002-12-04 14:21:51 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2002-12-04 14:21:51 +0000 |
commit | 8f48fd94bf41b4c062db2a32803c4abd22b81a33 (patch) | |
tree | f0caa15d4584f677dcb9437214574e9cf350b97c /MDK | |
parent | a329f0c34eb3f9ec1ed4f699c2962ef1cc379a8a (diff) | |
download | perl-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.pm | 8 |
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 { |