Skip to content

Commit

Permalink
fix error about missing $mirror
Browse files Browse the repository at this point in the history
  • Loading branch information
gugod committed Jun 8, 2016
1 parent 1b77c34 commit 10045f3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/App/perlbrew.pm
Original file line number Diff line number Diff line change
Expand Up @@ -724,6 +724,7 @@ sub available_perls {

sub perl_release {
my ($self, $version) = @_;
my $mirror = $self->cpan_mirror();

# try CPAN::Perl::Releases
require CPAN::Perl::Releases;
Expand All @@ -737,8 +738,6 @@ sub perl_release {
return ($dist_tarball, $dist_tarball_url);
}

my $mirror = $self->cpan_mirror();

# try src/5.0 symlinks, either perl-5.X or perl5.X; favor .tar.bz2 over .tar.gz
my $index = http_get("http://www.cpan.org/src/5.0/");
if ($index) {
Expand Down

0 comments on commit 10045f3

Please sign in to comment.