Poet::Script(3pm)
π Poet::Script β bestie, it's giving "boot up my script" energy π
ok so this is Poet::Script, from the User Contributed Perl Documentation, and it's literally the module that gets Poet all set up for a script. that's it, that's the whole job. π
β¨ NAME β¨
Poet::Script β initializes Poet for a script π
πΈ SYNOPSIS πΈ
bestie just drop this at the top of your script and you're so back:
# In a script...
use Poet::Script qw($cache $conf $poet $log :file);
π¦ DESCRIPTION π¦
so here's the tea β β this module is what you use to initialize Poet for a script. it does the following, and no we're not skipping any of it:
- figures out the environment root by looking upwards from the directory of the current script until it finds the Poet marker file (
.poet_root). iconic detective work fr fr π - reads and parses the configuration files. reading. parsing. slay. π
- shifts the
lib/subdirectory of the environment root onto@INC. yep, it's literally just scootching that bad boy over so your code can be found π«Ά - imports the specified quick vars and utility sets into the current package β see
Poet::Importfor the deets π
ngl that last bullet is doing a lot of heavy lifting, so if you wanna know what those quick vars and utility sets actually are, go read Poet::Import. i'm not gonna make stuff up, that's not the vibe. π
π SEE ALSO π
Poet
π AUTHOR π
Jonathan Swartz <swartz@pobox.com> β thank you for your service king π«‘β¨
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2012 by Jonathan Swartz.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. free software, we love to see it π
and that's the whole page, bestie! this one's from perl v5.34.0, dated 2022-06-18, and it's Poet::Script(3pm) β go forth and initialize your scripts, you absolute main character π
πΈβ
π¦ where this page comes from
- debian bookworm: libpoet-perl 0.16-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libpoet-perl 0.16-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libpoet-perl 0.16-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libpoet-perl 0.16-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libpoet-perl 0.16-3 Β· 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