App-Seacan
view release on metacpan or search on metacpan
lib/App/Seacan.pm view on Meta::CPAN
my $self = shift;
return join_path( $self->seacan_perlbrew_root, "perls", $self->config->{perl}{installed_as}, "bin", "perl" );
}
sub perl_is_installed {
my $self = shift;
my $perlbrew_root_path = join_path($self->config->{seacan}{output}, "perlbrew");
return 0 unless -d $perlbrew_root_path;
my $perl_executable = join_path($perlbrew_root_path, "perls", $self->config->{perl}{installed_as}, "bin", "perl");
if (my $r = -f $perl_executable) {
say STDERR "perl is installed: $perl_executable";
return 1;
}
return 0;
}
sub install_perl {
my $self = shift;
my $perlbrew_root_path = $self->seacan_perlbrew_root;
make_path( $perlbrew_root_path ) unless -d $perlbrew_root_path;
( run in 0.884 second using v1.01-cache-2.11-cpan-a1f116cd669 )