CPAN modules for getting a module's path

I've written a review of CPAN modules for getting a module's path, as previously promised.

This covers 14 modules, some of which offer a lot more than getting the path, and two of which offer nothing more than that. As ever, please let me know if you know of any module(s) I've missed.

If you just want to get the path for a module, Module::Path is probably a good choice (full disclosure: I wrote it)

If you want other metadata for a module beyond the path, such as its version and what subroutines it contains, then Class::Inspector or Module::Info are worth a look. At look of the modules provide something different, as you can see from the feature comparison table in the Comparison section.


Do you have a public repository with your benchmarking code?

Leave a comment

About Neil Bowers

user-pic Perl hacker since 1992.