Unix::MyPathToInc - Add the location of the current program to @INC.


Unix-MyPathToInc documentation  | view source Contained in the Unix-MyPathToInc distribution.

Index


NAME

Top

Unix::MyPathToInc - Add the location of the current program to @INC.

SYNOPSIS

Top

  use Unix::MyPathToInc;

  use Unix::MyPathToInc qw(/ lib);

DESCRIPTION

Top

Add the location of the current program to @INC, or perhaps several subdirectories related to the location of $0. If used with no imports, adds the current directory to @INC, or dies. Imports can be used to name directories relative to the program location (use an import of "/" to name the directory containing $0 when using explicit imports).

BUGS

Top

Requires that the script be executable.

Using $0 to modify @INC is criminally insane from a security standpoint. Don't use this module unless you understand its consequences.


Unix-MyPathToInc documentation  | view source Contained in the Unix-MyPathToInc distribution.