Gisle Aas > rlib-0.01 > rlib

Download:
rlib-0.01.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Module Version: 0.01   Source   Latest Release: rlib-0.02

NAME ^

rlib - add library directories relative to script location

SYNOPSIS ^

 use rlib;
 use MyModule;

DESCRIPTION ^

The rlib pragma module makes it easy for scripts to pick up library modules relative to where the scripts themselves are installed. The rlib pragma tries to add the SCRIPTDIR/lib and SCRIPTDIR/../lib to @INC. If none of these directories exists you will get a warning if you are running perl with the -w option.

Basically it does the same as:

   use FindBin;
   use lib "$FindBin::Bin/lib";
   use lib "$FindBin::Bin/../lib";

SEE ALSO ^

FindBin, lib, blib

AUTHOR ^

Gisle Aas

syntax highlighting: