above(3pm)

above3pm

Auto "use lib" when a module is in the tree of the pwd

Usage

use above "My::Module";

Overview

Used by the command-line wrappers for Command modules which are developer tools.

Do NOT use this in modules, or user applications.

Uses a module as though the cwd and each of its parent directories were at the beginnig of @INC. If found in that path, the parent directory is kept as though by "use lib".

Set ABOVE_DISCOVERY_ACROSS_FILESYSTEM shell variable to true value to crawl past device boundaries.

Examples

# given /home/me/perlsrc/My/Module.pm

# in /home/me/perlsrc/My/Module/Some/Path/

# in myapp.pl: use above "My::Module";

# does this ..if run anywhere under /home/me/perlsrc: use lib '/home/me/perlsrc/' use My::Module;

Releases

6 releases since Debian 8 (Jessie); the text changed 4 times.

  1. 8
  2. 9
  3. 10–11
  4. 12
  5. 13

Author

Scott Smith Nathaniel Nutter

From libur-perl 0.470+ds-3 in Debian 13 (Trixie). Parsed by carta from the page's man source.