in reply to Simulating the absence of a module

What exactly are you trying to do?

This sounds as if you have a problem, you've selected a solution, but then come up problems in implementing the solution.

You're trying to 'pretend that certain modules are not available', but if you explain why you're trying to do this (ie, what the original problem was), people might be able to give other, potentially better, alternatives.

Replies are listed 'Best First'.
Re^2: Simulating the absence of a module
by adrianh (Chancellor) on Jul 04, 2005 at 16:22 UTC
    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.

Re^2: Simulating the absence of a module
by gellyfish (Monsignor) on Jul 04, 2005 at 15:59 UTC

    Personally I thought:

    For writing test cases that trigger all possible choices, I would like to pretend that certain modules are not available.
    was quite explanatory.

    /J\