http://qs321.pair.com?node_id=618466


in reply to How to test different back ends?

looks like there's just different test files for each backend
Why don't you do the same? It is probably easier to write, understand and maintain separate test files for each module than having a single, large test for everything.

On the other hand, you can experiment with Symbol and delete_package. Note the BUGS section in the docs though:
"Symbol::delete_package" is a bit too powerful. It undefines every symbol that lives in the specified package and in its sub-packages. Since perl, for performance reasons, does not perform a symbol table lookup each time a function is called or a global variable is accessed, some code that has already been loaded and that makes use of symbols in package "Foo" may stop working after you delete "Foo", even if you reload the "Foo" module afterwards.
And, please do make sure your source code compiles before you post. Thanks.

Andreas
--