diff options
author | Guillem Jover <guillem@debian.org> | 2013-11-08 06:28:14 +0100 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2013-12-04 07:09:42 +0100 |
commit | bd281a3259a499217326ad4b3b1a2973a83d7434 (patch) | |
tree | c749b66dc5079cc05369d0b92942a1ce59440fff /scripts/dpkg-mergechangelogs.pl | |
parent | ee37c9202bb80ea4ee50bf463df1495eaf0d3a7c (diff) | |
download | dpkg-bd281a3259a499217326ad4b3b1a2973a83d7434.tar.gz |
perl: Switch to use low precedence boolean operators for error checks
This will make it safe to remove parenthesis around builtins.
Diffstat (limited to 'scripts/dpkg-mergechangelogs.pl')
-rwxr-xr-x | scripts/dpkg-mergechangelogs.pl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/dpkg-mergechangelogs.pl b/scripts/dpkg-mergechangelogs.pl index 9ce938530..f773cc616 100755 --- a/scripts/dpkg-mergechangelogs.pl +++ b/scripts/dpkg-mergechangelogs.pl @@ -133,9 +133,10 @@ while (1) { } if (defined($out_file) and $out_file ne '-') { - open(my $out_fh, '>', $out_file) || syserr(_g('cannot write %s'), $out_file); + open(my $out_fh, '>', $out_file) + or syserr(_g('cannot write %s'), $out_file); print $out_fh ((blessed $_) ? "$_" : "$_\n") foreach @result; - close($out_fh) || syserr(_g('cannot write %s'), $out_file); + close($out_fh) or syserr(_g('cannot write %s'), $out_file); } else { print ((blessed $_) ? "$_" : "$_\n") foreach @result; } |