You are running the example db copy operation in the perl Makefile.PL stage of building, which is too soon. The solution is to make the copy a target in the make stage. PREREQ having hauled in DBD::SQLite, the copy should work then.
According to the ExtUtils::MakeMaker pod, you can add a target to the default build target with the lowercase parameter,
and define the target with a &MY::postamble, which I think should look something like this,depend { all => 'example_data' }
That's untested, but something like it should work.sub MY::postamble { return << "DODB"; example_data \tperl -e'\\ \t your;\\ \t code;\\ \t here;' DODB }
After Compline,
Zaxo
In reply to Re: cpan module with binary data: when to build?
by Zaxo
in thread cpan module with binary data: when to build?
by thpfft
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |