in reply to Read a static file from module directory

As another poster mentioned, you can use %INC and File::Basename to identify the filesystem path where acme.pm was found:
use File::Basename 'dirname'; sub get_config { my $filename = dirname($INC{'acme.pm'}) . "/$_[0]"; croak "Can't find $filename" unless -f $filename; ... }
Another option is to simply walk @INC, or some other "config file path" of your choice and find this file:
sub find_config { my $filename = shift; foreach (@_) { return "$_/$filename" if -f "$_/$filename"; } return; } my $filename = find_config("acme.conf", @INC, "/also/search/here", "/a +nd/here") or die "Couldn't find acme.conf!";