Index | index by Group | index by Distribution | index by Vendor | index by creation date | index by Name | Mirrors | Help | Search |
Name: perl-Dir-Self | Distribution: OpenMandriva Lx |
Version: 0.110.0 | Vendor: OpenMandriva |
Release: 3 | Build date: Sun Nov 1 04:09:30 2020 |
Group: Development/Perl | Build host: c64three.openmandriva.org |
Size: 4958 | Source RPM: perl-Dir-Self-0.110.0-3.src.rpm |
Packager: bero <bero@lindev.ch> | |
Url: http://search.cpan.org/dist/Dir-Self | |
Summary: A __DIR__ constant for the directory your source file is in |
Perl has two pseudo-constants describing the current location in your source code, '__FILE__' and '__LINE__'. This module adds '__DIR__', which expands to the directory your source file is in, as an absolute pathname. This is useful if your code wants to access files in the same directory, like helper modules or configuration data. This is a bit like the FindBin manpage except it's not limited to the main program, i.e. you can also use it in modules. And it actually works. As of version 0.10 each use of '__DIR__' recomputes the directory name; this ensures that files in different directories that share the same package name get correct results. If you don't want this, 'use Dir::Self qw(:static)' will create a true '__DIR__' constant in your package that contains the directory name at the point of 'use'.
GPL+ or Artistic
* Mon Apr 25 2011 Funda Wang <fwang@mandriva.org> 0.100.0-2mdv2011.0 + Revision: 658747 - rebuild for updated spec-helper * Fri Jul 16 2010 Jérôme Quelin <jquelin@mandriva.org> 0.100.0-1mdv2011.0 + Revision: 554171 - import perl-Dir-Self * Fri Jul 16 2010 cpan2dist 0.10-1mdv - initial mdv release, generated with cpan2dist
/usr/share/doc/perl-Dir-Self /usr/share/doc/perl-Dir-Self/META.yml /usr/share/doc/perl-Dir-Self/README /usr/share/man/man3/Dir::Self.3pm.zst /usr/share/perl5/vendor_perl/Dir /usr/share/perl5/vendor_perl/Dir/Self.pm
Generated by rpm2html 1.8.1
Fabrice Bellet, Wed Sep 11 23:03:09 2024