Carton::Doc::Exec - execute your script in a carton local environment
carton exec perl myscript.pl
This command allows you to run your script in an isolated carton local environment, which means the perl 5 library path @INC are the only ones from perl's core library path, carton's library path (i.e. local/lib/perl5) and the current directory.
@INC
local/lib/perl5
This is useful to make sure your scripts and application use the exact same versions of the modules in your library path, and are not using any of the modules you accidentally installed into your system perl or perlbrew's site library path.
To install Carton, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Carton
CPAN shell
perl -MCPAN -e shell install Carton
For more information on module installation, please visit the detailed CPAN module installation guide.