SHARYANTO::ModuleOrPrefix::Path - Get the full path to a locally installed module or prefix
version 0.69
use SHARYANTO::ModuleOrPrefix::Path qw(module_or_prefix_path); say module_or_prefix_path('Test::More'); # "/path/to/Test/More.pm" say module_or_prefix_path('Test'); # "/path/to/Test.pm" say module_or_prefix_path('File::Slurp'); # "/path/to/File/Slurp.pm" say module_or_prefix_path('File'); # "/path/to/File/" say module_or_prefix_path('Foo'); # undef
The code is based on Neil Bower's Module::Path.
SHARYANTO
Module::Path
Please visit the project's homepage at https://metacpan.org/release/SHARYANTO-Utils.
Source repository is at https://github.com/sharyanto/perl-SHARYANTO-Utils.
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=SHARYANTO-Utils
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
Steven Haryanto <stevenharyanto@gmail.com>
This software is copyright (c) 2014 by Steven Haryanto.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install SHARYANTO::Utils, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SHARYANTO::Utils
CPAN shell
perl -MCPAN -e shell install SHARYANTO::Utils
For more information on module installation, please visit the detailed CPAN module installation guide.