Description
Perl code can get a __DIR__ constant that points to the directory containing the current source file. This helps modules locate bundled templates, configuration snippets, test fixtures, or other files stored beside the code.
It is a small developer helper. Applications should still validate paths when combining this directory with user-provided filenames.