DDG::Meta::ShareDir - Installing functions for easy access to the module sharedir
version 1017
This package installs the function required for using a sharedir and also provides the function share for easy access to it.
Warning: This function only installs its function when there is a sharedir at the proper directory inside the repository, else it will fail. You cant define that directory for yourself, the complete concept requires staying to the convention, see "module_share_dir".
This function gives direct access to sharedir content. For example with
my $file = share('somefile.txt');
you will get a Path::Class::File object of this specific file inside your sharedir. It works in development and inside the live system after installation of the module.
This function gets installed as part of the requirements a sharedir must provide. It gives back the path inside the repository where the sharedir of this module is placed. DDG::Spice::TestTest gets to share/spice/test_test.
Uses a given classname to install the described keywords.
It also adds the role DDG::HasShareDir to the target classname if the class has a sharedir.
DuckDuckGo <open@duckduckgo.com>
This software is Copyright (c) 2013 by DuckDuckGo, Inc. https://duckduckgo.com/.
This is free software, licensed under:
The Apache License, Version 2.0, January 2004
To install DDG, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DDG
CPAN shell
perl -MCPAN -e shell install DDG
For more information on module installation, please visit the detailed CPAN module installation guide.