libdir-self-perl

module providing a __DIR__ constant for the directory of the source file

Description

Perl has two pseudo-constants describing the current location in your source code, __FILE__ and __LINE__. Dir::Self 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 FindBin except it's not limited to the main program, i.e. you can also use it in modules. And it actually works.

Upload more screenshots

Please help extend the collection of screenshots. Just make a screenshot and upload it here. You don't need to register or anything.

Upload a screenshot

Hint: upload an image here from your clipboard with Ctrl-V


Homepage

https://metacpan.org/release/Dir-Self


Install this software package

If the package is available for the distribution you are currently using on your computer then install the software by clicking on…

Install libdir-self-perl