Findbin

FindBin(3p) Perl Programmers Reference Guide FindBin(3p)

Findbin

FindBin(3p) Perl Programmers Reference Guide FindBin(3p) # FindBin(3p) Perl Programmers Reference Guide FindBin(3p) NNAAMMEE # FindBin - Locate directory of original perl script SSYYNNOOPPSSIISS # use FindBin; use lib "$FindBin::Bin/../lib"; or use FindBin qw($Bin); use lib "$Bin/../lib"; DDEESSCCRRIIPPTTIIOONN # Locates the full path to the script bin directory to allow the use of paths relative to the bin directory. This allows a user to setup a directory tree for some software with directories "<root>/bin" and "<root>/lib", and then the above example will allow the use of modules in the lib directory without knowing where the software tree is installed. ...