| 1 | #!/usr/bin/env perl | ||||||||||
| 2 | # | ||||||||||
| 3 | # https://github.com/oklas/cpanexec | ||||||||||
| 4 | |||||||||||
| 5 | 4 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | 4 | ▶ | use local::lib; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | |||||||||||
| 8 | 4 | ▶ | die "Script or execuble may be with args required\n" | ||||||||
|
Branch: 1 branch
| |||||||||||
| 9 | unless scalar @ARGV; | ||||||||||
| 10 | |||||||||||
| 11 | 3 | ▶ | die "There is no folder 'local' in current dir\n" | ||||||||
|
Branch: 1 branch
| |||||||||||
| 12 | unless -d "./local"; | ||||||||||
| 13 | |||||||||||
| 14 | 2 | local::lib->setup_env_hash_for("./local"); | |||||||||
| 15 | |||||||||||
| 16 | 2 | exec @ARGV; | |||||||||