in reply to Where is the right place to put default configuration files in a module distribution?
I had the same problem when writing Acme::EyeDrops. I used the handy __FILE__, after I noticed its use in the Perl core Net::Config module. From Net/Config.pm:
This trick ensures that the configuration file, libnet.cfg in the example above, resides in the same directory as the Config.pm module.my $file = __FILE__; $file =~ s/Config.pm/libnet.cfg/;
|
|---|