What exactly are you trying to do?
I thought the OPs
For writing test cases that trigger all possible choices, I would like to pretend that certain modules are not available.
was pretty clear :-)
Test::Without::Module is one way.
In reply to Re^2: Simulating the absence of a module
by adrianh
in thread Simulating the absence of a module
by Thilosophy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |