in reply to Read a static file from module directory

If you know that it'll always be in the same directory as the Foo module you could look in $INC{Foo.pm} and use File::Basename to extract a directory name.

  • Comment on Re: Read a static file from module directory