perl-module-path 0.11.0

Perl module name/path conversion utilities
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# perl-module-path

Perl module name/path conversion utilities.

## Scope

- Convert module names to Perl module paths: `Foo::Bar` -> `Foo/Bar.pm`
- Convert module paths/keys to module names: `Foo/Bar.pm` -> `Foo::Bar`
- Convert source file paths to module names for rename workflows
- Normalize legacy package separators: `Foo'Bar` -> `Foo::Bar`
- Normalize both `/` and `\\` separators

## API

- `normalize_package_separator(module_name)`
- `module_name_to_path(module_name)`
- `module_path_to_name(module_path)`
- `file_path_to_module_name(file_path)`