GUIfriend has asked for the wisdom of the Perl Monks concerning the following question:

My program consists of several modules, all contained in the same directory, say "mydir". I succeeded in creating a tarball from this by using Module::Build. Now I want to add a subdirectory "mydir/examples", and this should be populated with several text files. How can I manage this?
  • Comment on Module::Build - how include data files?

Replies are listed 'Best First'.
Re: Module::Build - how include data files?
by Anonymous Monk on May 04, 2012 at 09:16 UTC
Re: Module::Build - how include data files?
by GUIfriend (Sexton) on May 06, 2012 at 17:33 UTC

    I found a rather straightforward way to reach my goal:

    • Copy all examples to the destination directory
    • use $builder->add_build_element('sudo'); immediately before $builder->create_build_script();

      ('.sudo' is the extension of my example files)

    • Use ./Build manifest to update the MANIFEST file