summaryrefslogtreecommitdiffstats
path: root/perl-install/ftp.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/ftp.pm')
-rw-r--r--perl-install/ftp.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/perl-install/ftp.pm b/perl-install/ftp.pm
index b1910df13..669ed4fcb 100644
--- a/perl-install/ftp.pm
+++ b/perl-install/ftp.pm
@@ -57,10 +57,10 @@ sub new {
}
sub getFile {
- my $f = shift;
- my ($ftp, $retr) = new(@_ ? @_ : fromEnv);
+ my ($f, @para) = @_;
+ my ($ftp, $retr) = new(@para ? @para : fromEnv);
$$retr->close if $$retr;
- $$retr = $ftp->retr($f) or rewindGetFile();
+ $$retr = $ftp->retr($f) or do { rewindGetFile(); goto &getFile };
$$retr ||= $ftp->retr($f);
}