in reply to get absolute path of the module inside it

If you're within the file in question, this is simpler:
my $FULLPATH; BEGIN { use Cwd (); $FULLPATH = Cwd::abs_path(__FILE__) }

Replies are listed 'Best First'.
Re^2: get absolute path of the module inside it
by Anonymous Monk on May 19, 2010 at 21:06 UTC
    SWEET! This is exactly what I needed. So funny, I thought, there has to be a way to do this in perl. My need is to find a corresponding config file relative to where the perl module is installed. Thank You! -Steve