use File::Basename qw(dirname); use Cwd qw(abs_path); my $THIS_DIR; BEGIN { $THIS_DIR = dirname abs_path __FILE__; }
-- Randal L. Schwartz, Perl hacker
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119.
In reply to Re: Finding module directory from within module
by merlyn
in thread Finding module directory from within module
by Zubinix
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |