diff options
author | Guillem Jover <guillem@debian.org> | 2012-12-30 01:35:10 +0100 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2013-04-28 00:18:01 +0200 |
commit | fc4f53c4b7d0837bef169ce7cdc0abec124f2d7d (patch) | |
tree | fbf0010e0818db47250a8a04dcaa4fc8bace5f48 /scripts/dpkg-mergechangelogs.pl | |
parent | 9b590b2a54670c919a638a336769ae0687b2e72b (diff) | |
download | dpkg-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-x | scripts/dpkg-mergechangelogs.pl | 6 |
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; } |