SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG

BotDetect - Real-Time Bot Detection API
 
 

MAN page from Old RedHat 5.X perl-5.004-4.i386.rpm

FindBin

Section: Perl Programmers Reference Guide (3)
Updated: perl 5.004, patch 04
Index 

NAME

FindBin - Locate directory of original perl script 

SYNOPSIS

 use FindBin; use lib "$FindBin::Bin/../lib";
 or
 use FindBin qw($Bin); use lib "$Bin/../lib";
 

DESCRIPTION

Locates the full path to the script bin directory to allow the useof paths relative to the bin directory.

This allows a user to setup a directory tree for some software withdirectories <root>/bin and <root>/lib and then the above example will allowthe use of modules in the lib directory without knowing where the softwaretree is installed.

If perl is invoked using the -e option or the perl script is read fromSTDIN then FindBin sets both $Bin and $RealBin to the currentdirectory. 

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
 

KNOWN BUGS

if perl is invoked as

   perl filename
and filename does not have executable rights and a program called filenameexists in the users $ENV{PATH} which satisfies both -x and -T then FindBinassumes that it was invoked via the $ENV{PATH}.

Workaround is to invoke perl as

 perl ./filename
 

AUTHORS

Graham Barr <bodgAATTtiuk.ti.com>Nick Ing-Simmons <nikAATTtiuk.ti.com> 

COPYRIGHT

Copyright (c) 1995 Graham Barr & Nick Ing-Simmons. All rights reserved.This program is free software; you can redistribute it and/or modify itunder the same terms as Perl itself. 

REVISION

$Revision: 1.4 $


 

Index

NAME
SYNOPSIS
DESCRIPTION
EXPORTABLE VARIABLES
KNOWN BUGS
AUTHORS
COPYRIGHT
REVISION

This document was created byman2html,using the manual pages.
 
ICM Bot detect detector