blib(3perl)
π blib β the perl (3perl) manual page, bestie edition π
okay so you found a 3perl page?? iconic. this one lives in section 3 of the perl manual, and it's literally the smallest little tool with the biggest "trust me it works" energy. let's get into it.
β¨ NAME β¨
blib β bestie, this is how you use MakeMaker's uninstalled version of a package π«Ά
πΈ SYNOPSIS πΈ
perl -Mblib script [args...]
perl -Mblib=dir script [args...]
π¦ DESCRIPTION π¦
so here's the vibe: this thing goes looking for a MakeMaker-ish blib directory structure. it starts in dir (or, if you didn't give it one, the current directory) and climbs back up through .., .., .. β up to five levels deep. five!! that's the limit, that's the whole quest. π
the intended use is on the command line, with the -M option, as a way of testing arbitrary scripts against an uninstalled version of a package. that's the main character moment. that's the whole point.
however β and this is where it gets unhinged β it is possible to do this:
use blib;
or
use blib '..';
etc. if you really must. π like. if there's no other way. if you've exhausted every option. fine. go off i guess.
π BUGS π
ngl it pollutes the global name space. but it's for a development-only task, so it's giving "we accept this, it's fine, it's camp". π
π AUTHOR π
Nick Ing-Simmons β nik@tiuk.ti.com π
okay that's the whole page, no cap. this was perl v5.44.0, dated 2026-10-17, and it's filed under blib(3perl). slay, go test your uninstalled packages, ily bestie πβ¨π
π¦ where this page comes from
- arch rolling: perl 5.44.0-1 Β· Artistic-1.0-Perl AND 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