diff options
author | Guillem Jover <guillem@debian.org> | 2013-11-07 06:32:28 +0100 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2013-12-04 07:09:43 +0100 |
commit | b2590e1ea176bf0c4d04fb855f66e324c8018bb1 (patch) | |
tree | f15fe219fa700c639b42678c69746bfaccdd3179 /scripts/dpkg-distaddfile.pl | |
parent | 38d22e9477c3120081c73553138d7f26288a7682 (diff) | |
download | dpkg-b2590e1ea176bf0c4d04fb855f66e324c8018bb1.tar.gz |
perl: Surround FileHandles with braces in print calls
Fixes InputOutput::RequireBracedFileHandleWithPrint.
Warned-by: perlcritic
Diffstat (limited to 'scripts/dpkg-distaddfile.pl')
-rwxr-xr-x | scripts/dpkg-distaddfile.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/dpkg-distaddfile.pl b/scripts/dpkg-distaddfile.pl index 233f12ecd..cca9335af 100755 --- a/scripts/dpkg-distaddfile.pl +++ b/scripts/dpkg-distaddfile.pl @@ -89,14 +89,14 @@ if (open(my $fileslist_fh, '<', $fileslistfile)) { while (<$fileslist_fh>) { s/\n$//; next if m/^(\S+) / && $1 eq $file; - print($fileslistnew_fh "$_\n") + print { $fileslistnew_fh } "$_\n" or syserr(_g('copy old entry to new files list file')); } close $fileslist_fh or syserr(_g('cannot close %s'), $fileslistfile); } elsif ($! != ENOENT) { syserr(_g('read old files list file')); } -print($fileslistnew_fh "$file $section $priority\n") +print { $fileslistnew_fh } "$file $section $priority\n" or syserr(_g('write new entry to new files list file')); close($fileslistnew_fh) or syserr(_g('close new files list file')); rename("$fileslistfile.new", $fileslistfile) |