Carton...c::Exec(3pm)
β¨ NAME β¨
Carton::Doc::Exec β bestie, this is the one that runs your script inside a carton local environment π (it's a page from the Carton manual, section 3pm, iykyk)
π«Ά SYNOPSIS π«Ά
carton exec perl myscript.pl
πΈ DESCRIPTION πΈ
okay so listen. exec lets you run your script in an isolated carton local environment, and that is a whole vibe. what that actually means is that the perl 5 library path @INC contains only these three things, no more, no less:
- the paths from perl's core library path π
- carton's library path β that's
local/lib/perl5π - the current directory π¦
that's it. that's the list. periodt.
and why do we care?? because this is how you make absolutely sure your scripts and your app are using the exact same versions of the modules in your library path. no cap. it means you're not accidentally pulling in some module you installed into your system perl, or into perlbrew's site library path, without even realizing it π
like imagine thinking you're running your cute little app and it's actually using a totally different module version from six months ago that you forgot existed. not on our watch. π
π SEE ALSO π
ngl this page is short and sweet, but it's part of the bigger Carton docs β go read the rest of the manual for the full story π§
and that's the whole page, bestie!! π this lil' gem came from the User Contributed Perl Documentation, it's Carton::Doc::Exec(3pm), and it's stamped with perl v5.34.0 from 2022-05-12. slay, go isolate those environments πβ¨ππ¦πΈ
π¦ where this page comes from
- debian bookworm: carton 1.0.35-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: carton 1.0.35-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: carton 1.0.35-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms