App-cpx
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
my $cpm = App::cpm::CLI->new;
$cpm->run( 'install', "-L$local_lib", $to_install );
# The ultimate goal: execute!
sub execute {
my $ll = shift; # Local Lib
my $b = shift; # bin
if (-f "$ll/bin/$b") {
exec "perl", "-Mlocal::lib=$ll", "$ll/bin/$b", @ARGV;
} else {
print "ð Executable was found, but not installed correctly\n";
exit -1;
}
}
execute($local_lib, $bin);
view all matches for this distributionview release on metacpan - search on metacpan
( run in 1.348 second using v1.00-cache-2.02-grep-82fe00e-cpan-da92000dfeb )