1 2 3 4 5 6 7 8 9
#!/usr/bin/env perl BEGIN { # set all the paths to the perl code use FindBin; require "$FindBin::Bin/../setenv.pl"; } exec { $ARGV[0] } @ARGV;