FindBin

FindBin is a Perl module that can locate directory of original perl script.
Download

FindBin Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Graham Barr and Nick Ing-Simmons
  • Publisher web site:
  • http://search.cpan.org/~nwclark/

FindBin Tags


FindBin Description

FindBin is a Perl module that can locate directory of original perl script. FindBin is a Perl module that can locate directory of original perl script.SYNOPSIS use FindBin; use lib "$FindBin::Bin/../lib"; or use FindBin qw($Bin); use lib "$Bin/../lib";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.If perl is invoked using the -e option or the perl script is read from STDIN then FindBin sets both $Bin and $RealBin to the current directory.EXPORTABLE VARIABLES $Bin - path to bin directory from where script was invoked $Script - basename of script from which perl was invoked $RealBin - $Bin with all links resolved $RealScript - $Script with all links resolved Requirements: · Perl


FindBin Related Software