in reply to Re: Installing templates or other static files with ExtUtils::MakeMaker
in thread Installing templates or other static files with ExtUtils::MakeMaker

No need to copy and paste it. Just use it. It's a small, self-contained, pure Perl module with no non-core dependencies, so you could just bundle it in the distributed tarball as inc/File/ShareDir/Install.pm, and load it like:

use lib "inc"; use File::ShareDir::Install;
use Moops; class Cow :rw { has name => (default => 'Ermintrude') }; say Cow->new->name