Skip to main content

module_name_to_path

Function module_name_to_path 

Source
pub fn module_name_to_path(module_name: &str) -> String
Expand description

Convert a module name into a relative Perl module path.

ยงExamples

use perl_module_path::module_name_to_path;

assert_eq!(module_name_to_path("Foo::Bar"), "Foo/Bar.pm");
assert_eq!(module_name_to_path("strict"), "strict.pm");