| 1 | Source: libdir-self-perl |
| 2 | Section: perl |
| 3 | Priority: optional |
| 4 | Build-Depends: debhelper-compat (= 13) |
| 5 | Build-Depends-Indep: perl |
| 6 | Maintainer: Debian Perl Group <[email protected]> |
| 7 | Uploaders: gregor herrmann <[email protected]> |
| 8 | Standards-Version: 3.9.4 |
| 9 | Homepage: https://metacpan.org/release/Dir-Self |
| 10 | Vcs-Git: https://salsa.debian.org/perl-team/modules/packages/libdir-self-perl.git |
| 11 | Vcs-Browser: https://salsa.debian.org/perl-team/modules/packages/libdir-self-perl |
| 12 | Testsuite: autopkgtest-pkg-perl |
| 13 | |
| 14 | Package: libdir-self-perl |
| 15 | Architecture: all |
| 16 | Depends: ${misc:Depends}, ${perl:Depends} |
| 17 | Multi-Arch: foreign |
| 18 | Description: module providing a __DIR__ constant for the directory of the source file |
| 19 | Perl has two pseudo-constants describing the current location in your source |
| 20 | code, __FILE__ and __LINE__. Dir::Self adds __DIR__, which expands to the |
| 21 | directory your source file is in, as an absolute pathname. |
| 22 | . |
| 23 | This is useful if your code wants to access files in the same directory, like |
| 24 | helper modules or configuration data. This is a bit like FindBin except it's |
| 25 | not limited to the main program, i.e. you can also use it in modules. And it |
| 26 | actually works. |