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