Name : perl-Find-Lib
| |
Version : 1.04
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : 1.62
| Date : 2024-08-05 18:12:33
|
Group : Development/Libraries/Perl
| Source RPM : perl-Find-Lib-1.04-1.62.src.rpm
|
Size : 0.01 MB
| |
Packager : (none)
| |
Summary : Helper to smartly find libs to use in the filesystem tree
|
Description :
The purpose of this module is to replace
use FindBin; use lib \"$FindBin::Bin/../bootstrap/lib\";
with something shorter. This is specially useful if your project has a lot of scripts (For instance tests scripts).
use Find::Lib \'../bootstrap/lib\';
The important differences between FindBin and Find::Lib are:
* * symlinks and \'..\'
If you have symlinks in your path it respects them, so basically you can forget you have symlinks, because Find::Lib will do the natural thing (NOT ignore them), and resolve \'..\' correctly. FindBin breaks if you do:
use lib \"$Bin/../lib\";
and you currently are in a symlinked directory, because $Bin resolved to the filesystem path (without the symlink) and not the shell path.
* * convenience
it\'s faster too type, and more intuitive (Exporting \'$Bin\' always felt weird to me).
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-F/openSUSE_Tumbleweed/noarch |