perl-Dir-Self - A __DIR__ constant for the directory your source file is in

Distribution: Mageia 4.1
Repository: Mageia Core i586
Package name: perl-Dir-Self
Package version: 0.110.0
Package release: 2.mga4
Package architecture: noarch
Package type: rpm
Installed size: 7.55 KB
Download size: 9.70 KB
Official Mirror:
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'.



  • perl(Dir::Self) == 0.110.0
  • perl-Dir-Self == 0.110.0-2.mga4

    Install Howto

    1. Enable Mageia Core repository on "Install and Remove Software"
    2. Update packages list:
      # urpmi.update -a
    3. Install perl-Dir-Self rpm package:
      # urpmi perl-Dir-Self


    • /usr/lib/perl5/vendor_perl/5.18.1/Dir/
    • /usr/share/doc/perl-Dir-Self/Changes
    • /usr/share/doc/perl-Dir-Self/META.json
    • /usr/share/doc/perl-Dir-Self/META.yml
    • /usr/share/doc/perl-Dir-Self/MYMETA.yml
    • /usr/share/doc/perl-Dir-Self/README
    • /usr/share/man/man3/Dir::Self.3pm.xz


    2013-10-19 - umeabot <umeabot> 0.110.0-2.mga4 + Revision: 534049 - Mageia 4 Mass Rebuild

    2013-09-08 - sander85 <sander85> 0.110.0-1.mga4 + Revision: 476098 - update to 0.11

    2013-01-13 - umeabot <umeabot> 0.100.0-2.mga3 + Revision: 365964 - Mass Rebuild -

    2011-01-21 - jquelin <jquelin> 0.100.0-1.mga1 + Revision: 28503 - mageia rebuild - imported package perl-Dir-Self