App-cpx
    
    
  
  
  
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);
    
  
  
  
( run in 0.732 second using v1.01-cache-2.11-cpan-a1d94b6210f )