Situation:
I have a module Foo::Quux::Bar
, living in ./Bar.pm
. I need to be able to unit test Bar. However, it is not advantageous due to circumstances beyond my control to set up a Foo/Quux directory structure.
So what I'd like to do is have some sort of unit_test_use routine that lets me grab Bar.pm and move/copy its functions into the local namespace(Note that Bar has a package Foo::Quux::Bar
specifier) for my testing pleasure.
Grubbing around in the Perl documentation has not helped me.