unmocked(3pm) | User Contributed Perl Documentation | unmocked(3pm) |
unmocked - use real libraries from within mocked libraries
# Your mocked module needs to use a real library package Fake::Fun; use unmocked 'URI';
When mocking modules using 'mocked', you are certain that no extra "real" libraries are being loaded. But sometimes you don't want to use real libraries from within your mocked library. This module allows you to load real libraries using your previous include paths.
With a package name, this function will ensure that the module you specify is loaded from the regular @INC path (that mocked.pm has removed).
Luke Closs, "<cpan at 5thplane.com>"
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
2022-12-04 | perl v5.36.0 |