File::ShareDir::ProjectDistDirSimple set-and-forget using of a '/share' directory in your projects root | |
Download |
File::ShareDir::ProjectDistDir Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Kent Fredric
- Publisher web site:
- http://search.cpan.org/~kentnl/
File::ShareDir::ProjectDistDir Tags
File::ShareDir::ProjectDistDir Description
File::ShareDir::ProjectDistDir is a simple set-and-forget Perl class using of a '/share' directory in your projects rootSYNOPSIS package An::Example::Package; use File::ShareDir::ProjectDistDir; # during development, $dir will be $projectroot/share # but once installed, it will be wherever File::Sharedir thinks it is. my $dir = dist_dir('An-Example')Project layout requirements: $project/ $project/lib/An/Example/Package.pm $project/share/ # files for package 'An-Example' go here.You can use a directory name other than 'share' ( Assuming you make sure when you install that, you specify the different directory there also ) as follows: use File::ShareDir::ProjectDistDir ':all', defaults => { projectdir => 'templates', };Product's homepage
File::ShareDir::ProjectDistDir Related Software