NAME

SHARYANTO::ModuleOrPrefix::Path - Get the full path to a locally installed module or prefix

VERSION

version 0.61

SYNOPSIS

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

DESCRIPTION

The code is based on Neil Bower's Module::Path.

FUNCTIONS

module_or_prefix_path(MODULE) => STR

None are exported by default, but they are exportable.

SEE ALSO

Module::Path

AUTHOR

Steven Haryanto <stevenharyanto@gmail.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2013 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.