File::ProjectHome - Find home dir of a project
in /home/Cside/work/Some-Project/lib/Some/Module.pm
use File::ProjectHome; print File::ProjectHome->project_home; #=> /home/Cside/work/Some-Project
This module finds a project's home dir: nearest ancestral directory that contains any of these file or directories:
cpanfile .git/ .gitmodules Makefile.PL Build.PL
Project::Libs
Copyright (C) Hiroki Honda.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Hiroki Honda <cside.story@gmail.com>
To install File::ProjectHome, copy and paste the appropriate command in to your terminal.
cpanm
cpanm File::ProjectHome
CPAN shell
perl -MCPAN -e shell install File::ProjectHome
For more information on module installation, please visit the detailed CPAN module installation guide.