Module::Install::Share - Install non-code files for use during runtime
# Put everything inside ./share/ into the distribution 'auto' path install_share 'share'; # Same thing as above using the default directory name install_share;
As well as Perl modules and Perl binary applications, some distributions need to install read-only data files to a location on the file system for use at run-time.
XML Schemas, YAML data files, and SQLite databases are examples of the sort of things distributions might typically need to have available after installation.
Module::Install::Share is a Module::Install extension that provides commands to allow these files to be installed to the applicable location on disk.
Module::Install::Share
To locate the files after installation so they can be used inside your module, see this extension's companion module File::ShareDir.
Module::Install, File::ShareDir
To install Module::Install, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Module::Install
CPAN shell
perl -MCPAN -e shell install Module::Install
For more information on module installation, please visit the detailed CPAN module installation guide.