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