Package : perl-Dir-Self > RPM : perl-Dir-Self-0.110.0-8.mga6.src.rpm

Basic items

Name perl-Dir-Self
Version 0.110.0
Release 8.mga6
URL http://search.cpan.org/dist/Dir-Self
Group Development/Perl
Summary A __DIR__ constant for the directory your source file is in
Size 6KB
Arch noarch
License GPL+ or Artistic

Description

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'.

Media information

Distribution release Mageia 6
Media name core-release
Media arch i586

Advanced items

Source RPM NOT IN DATABASE ?!
Build time 2016-06-19 00:35:28
Changelog View in Sophie
Files View in Sophie
Dependencies View in Sophie