Skip to content
Sections
>> Trisquel >> パッケージ >> etiona >> perl >> libdir-self-perl
etiona  ] [  nabia  ] [  aramo  ]
[ ソース: libdir-self-perl  ]

パッケージ: libdir-self-perl (0.11-2)

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

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.

その他の libdir-self-perl 関連パッケージ

  • 依存
  • 推奨
  • 提案
  • dep: perl
    Larry Wall's Practical Extraction and Report Language

libdir-self-perl のダウンロード

すべての利用可能アーキテクチャ向けのダウンロード
アーキテクチャ パッケージサイズ インストールサイズ ファイル
all 5.3 kB18 kB [ファイル一覧]