Path::Resolver::Role::Resolver - resolving paths is just what resolvers do!
version 2.001
Classes implementing this role must provide a content_for method. It is expected to receive an arrayref of path parts and to return either false or a reference to a string containing the content of the file-like entity at the path.
content_for
This role will wrap the content_for method to convert strings into arrayrefs by splitting them with File::Spec::Unix. This means that paths should always be given to content_for following unix conventions.
Empty path parts are removed -- except for the first, which would represent the root are skipped, and the last, which would imply that you provided a path ending in /, which is a directory.
Ricardo Signes <rjbs@cpan.org>
This software is copyright (c) 2009 by Ricardo Signes.
This is free software; you can redistribute it and/or modify it under the same terms as perl itself.
To install Path::Resolver, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Path::Resolver
CPAN shell
perl -MCPAN -e shell install Path::Resolver
For more information on module installation, please visit the detailed CPAN module installation guide.