[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#600397: RFP: libdir-self-perl -- A Perl module for finding the directory your source file is in



Package: wnpp
Severity: wishlist

* Package name    : libdir-self-perl
  Version         : 0.10
  Upstream Author : Lukas Mai <l.mai@web.de>
* URL             : http://search.cpan.org/dist/Dir-Self/
* License         : Artistic or GPL-1+
  Programming Lang: Perl
  Description     : A Perl module for finding the directory your source file is in

Perl has two pseudo-constants describing the current location in your source
code, __FILE__ and __LINE__. This module 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.

This is a useful module that should be in Debian. It is also the only missing
runtime dependency for Hailo (see #568152).



Reply to: