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.
In reply to Re: Read a static file from module directory
by Fletch
in thread Read a static file from module directory
by l_millr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |