Skip to main content

Crate perl_module_token

Crate perl_module_token 

Source
Expand description

Boundary-safe Perl module token replacement helpers.

This crate provides a small, focused API used by module-rename workflows. It handles canonical (Foo::Bar) and legacy (Foo'Bar) separator variants and delegates standalone token scanning to perl-module-boundary.

Functionsยง

contains_module_token
Returns true when line contains module_name as a standalone module token, respecting module boundaries.
module_variant_pairs
Build canonical + legacy module rename pairs.
replace_module_token
Replace standalone from module token occurrences in line with to.