in reply to Re: (tye)Re: How to make a module aware of where it is installed?
in thread How to make a module aware of where it is installed?

If your module is called Foo::Bar, then $INC{"Foo/Bar.pm"} will give you the full path to your Bar.pm file. Or you could use __FILE__ for the same thing. Then use File::Basename and/or File::Spec (see also File::Spec) to get the path of just the directory.

        - tye
  • Comment on (tye)Re2: How to make a module aware of where it is installed?

Replies are listed 'Best First'.
Re: (tye)Re2: How to make a module aware of where it is installed?
by jaldhar (Vicar) on Dec 04, 2002 at 16:51 UTC

    Yep. that's what I do now based on atcroft's suggestion.

    --
    જલધર