FICHA · MANJARO

perl-dir-self

a __DIR__ constant for the directory your source file is in

  • Library
  • NONE
  • Dependency only
official+codex · reviewed · May 28, 2026 description in en

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.

Permissions

Permissions not analysed for this source yet.