Hi perl6-users,

Suppose I have a file like this:

    # module.pm
    sub hello is export {
        shell "echo hello world"
    }

and another like this:

    # test.t
    use module;
    hello;

I want to have 'hello' invoke a 'shell' that I write,
rather than the real one, so that I can mock the
behavior of a command.  What would be the best way
to do this?

thanks
Brian

Reply via email to