Description
Perl tests and frameworks can temporarily replace subroutines with alternate implementations. This is useful for mocking dependencies, intercepting behavior, or adapting legacy code during tests.
It is a developer library. Overriding routines can hide real behavior, so tests should restore originals and avoid using overrides in production paths unless the design is explicit.