summaryrefslogtreecommitdiff
path: root/dselect/methods
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2013-11-07 06:32:28 +0100
committerGuillem Jover <guillem@debian.org>2013-12-04 07:09:43 +0100
commitb2590e1ea176bf0c4d04fb855f66e324c8018bb1 (patch)
treef15fe219fa700c639b42678c69746bfaccdd3179 /dselect/methods
parent38d22e9477c3120081c73553138d7f26288a7682 (diff)
downloaddpkg-b2590e1ea176bf0c4d04fb855f66e324c8018bb1.tar.gz
perl: Surround FileHandles with braces in print calls
Fixes InputOutput::RequireBracedFileHandleWithPrint. Warned-by: perlcritic
Diffstat (limited to 'dselect/methods')
-rw-r--r--dselect/methods/Dselect/Ftp.pm2
-rwxr-xr-xdselect/methods/ftp/install2
2 files changed, 2 insertions, 2 deletions
diff --git a/dselect/methods/Dselect/Ftp.pm b/dselect/methods/Dselect/Ftp.pm
index 38c2c5499..6818ac0a7 100644
--- a/dselect/methods/Dselect/Ftp.pm
+++ b/dselect/methods/Dselect/Ftp.pm
@@ -74,7 +74,7 @@ sub store_config {
open(my $vars_fh, '>', $vars)
or die "couldn't open $vars in write mode: $!\n";
- print $vars_fh Dumper(\%CONFIG);
+ print { $vars_fh } Dumper(\%CONFIG);
close $vars_fh;
}
diff --git a/dselect/methods/ftp/install b/dselect/methods/ftp/install
index 2d539f574..5277a651c 100755
--- a/dselect/methods/ftp/install
+++ b/dselect/methods/ftp/install
@@ -628,7 +628,7 @@ foreach (keys %md5sums) {
}
open(my $md5sums_fh, '>', "$methdir/md5sums")
or die "can't open $methdir/md5sums in write mode: $!\n";
-print $md5sums_fh Dumper(\%md5sums);
+print { $md5sums_fh } Dumper(\%md5sums);
close $md5sums_fh;
exit $exit;