summaryrefslogtreecommitdiff
path: root/scripts/dpkg-mergechangelogs.pl
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2012-12-30 01:35:10 +0100
committerGuillem Jover <guillem@debian.org>2013-04-28 00:18:01 +0200
commitfc4f53c4b7d0837bef169ce7cdc0abec124f2d7d (patch)
treefbf0010e0818db47250a8a04dcaa4fc8bace5f48 /scripts/dpkg-mergechangelogs.pl
parent9b590b2a54670c919a638a336769ae0687b2e72b (diff)
downloaddpkg-fc4f53c4b7d0837bef169ce7cdc0abec124f2d7d.tar.gz
Use proper variables instead of barewords for filehandles
Fixes InputOutput::ProhibitBarewordFileHandles. Warned-by: perlcritic
Diffstat (limited to 'scripts/dpkg-mergechangelogs.pl')
-rwxr-xr-xscripts/dpkg-mergechangelogs.pl6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/dpkg-mergechangelogs.pl b/scripts/dpkg-mergechangelogs.pl
index c19de08f3..d6a5d871c 100755
--- a/scripts/dpkg-mergechangelogs.pl
+++ b/scripts/dpkg-mergechangelogs.pl
@@ -125,9 +125,9 @@ while (1) {
}
if (defined($out_file) and $out_file ne "-") {
- open(OUT, ">", $out_file) || syserr(_g("cannot write %s"), $out_file);
- print OUT ((blessed $_) ? "$_" : "$_\n") foreach @result;
- close(OUT) || syserr(_g("cannot write %s"), $out_file);
+ open(my $out_fh, ">", $out_file) || syserr(_g("cannot write %s"), $out_file);
+ print $out_fh ((blessed $_) ? "$_" : "$_\n") foreach @result;
+ close($out_fh) || syserr(_g("cannot write %s"), $out_file);
} else {
print ((blessed $_) ? "$_" : "$_\n") foreach @result;
}