Problems? Is your data what you think it is? | |
PerlMonks |
Change package name on the fly?by pileofrogs (Priest) |
on Sep 05, 2012 at 22:27 UTC ( [id://991961]=perlquestion: print w/replies, xml ) | Need Help?? |
pileofrogs has asked for the wisdom of the Perl Monks concerning the following question: Greetings Monks. I'm writing a test to make sure a new version of a perl module is compatible with an old version. The most obvious way to do that is to run the various functions from both versions and compare the result. Obviously I can't just 'use' or 'require' the two modules, as they have the same package name and the same subroutine names and so on. The solution, it seems to me, would be to load the first version, then rename it's package somehow. Something like this:
Thanks!
Back to
Seekers of Perl Wisdom
|
|