in reply to Finding module directory from within module

it's something like this.
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.

Replies are listed 'Best First'.
Re^2: Finding module directory from within module
by Zubinix (Acolyte) on Jul 30, 2009 at 06:08 UTC
    Thanks that works the way I wanted.