NAME
Carmel::Setup - Configures Carmel environment within a perl application
SYNOPSIS
# in your perl application code, before using any modules
use Carmel::Setup;
use Plack;
DESCRIPTION
Carmel::Setup allows you to confgure Carmel environment within a perl code, so that you don't need to call carmel exec
to run your program.
Difference with carmel exec
carmel exec
adds -MCarmel::Setup
to PERL5OPT
, which means all the perl program, including third party commands spawned off of your program (via system
etc.) will also use the Carmel environment. That may or may not be what you want, and calling Carmel::Setup manually in your own code gives you the choice of bypassing carmel exec
.