blib(3pm) Perl Programmers Reference Guide blib(3pm)

# [NAME](#NAME)

blib - Use MakeMaker's uninstalled version of a package

# [SYNOPSIS](#SYNOPSIS)

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

# [DESCRIPTION](#DESCRIPTION)

Looks for MakeMaker-like *'blib'* directory structure starting in *dir* (or current directory) and working back up to five levels of '..'.

Intended for use on command line with **-M** option as a way of testing arbitrary scripts against an uninstalled version of a package.

However it is possible to :

```
 use blib;
 or
 use blib '..';
```

etc. if you really must.

# [BUGS](#BUGS)

Pollutes global name space for development only task.

# [AUTHOR](#AUTHOR)

Nick Ing-Simmons nik@tiuk.ti.com

2026-10-27 perl v5.44.0

---

Document: blib(3pm) from perl 5.44.0-r4 (Chainguard OS)
Source: https://github.com/Perl/perl5.git
