blib(3pm)

okay so bestie, welcome to the blib(3pm) page from the Perl Programmers Reference Guide β€” it's giving uninstalled-package testing energy and honestly? iconic. Let's get into it πŸ’…βœ¨

🌸 NAME 🌸

  • blib β€” Use MakeMaker's uninstalled version of a package.

✨ SYNOPSIS ✨

perl -Mblib script [args...]
perl -Mblib=dir script [args...]

πŸŽ€ DESCRIPTION πŸŽ€

So it looks for a MakeMaker-like 'blib' directory structure, starting in dir (or the current directory) and working back up to five levels of '..'. No cap, that's the whole vibe.

It's intended for use on the command line with the -M option, as a way of testing arbitrary scripts against an uninstalled version of a package.

However, it is possible to do this too:

use blib;

or

use blib '..';

etc. if you really must. 🫢

πŸ’€ BUGS πŸ’€

⚠️ Pollutes global name space for development only task. Like, that's the bug note, bestie β€” dramatic but true πŸ’€

πŸ‘‘ AUTHOR πŸ‘‘

Nick Ing-Simmons β€” nik@tiuk.ti.com πŸ‘‘βœ¨


okay byeee bestie β€” this was blib(3pm) from perl v5.42.3, dated 2026-11-03. slay and stay uninstalled πŸ’–πŸŒˆ

πŸ“¦ where this page comes from