I'm maintaining a Perl module. To work properly, it needs a couple of data files (in YAML format). Currently, they get installed by ExtUtils::MakeMaker in a disgustingly hacky way, and later located by the Perl code by looking up a starting point in Config.pm. This works, but it is ugly. It's also somewhat problematic when it comes to some Perl installation variants (particularly, for me right now, Debian's).
So I've been trying to find out what's the right and proper way of including data files with Perl modules, on the assumption that I cannot possibly be the first person ever to need that. And I can't find anything about this. Not in the Perl documentation, not in the MakeMaker documentation, not in the Module::Install documentation, not with Google, not... just not.
Does anyone here know anything about this? Any hints on other modules that have data files? Documentation I've missed?