in reply to load a module or another: Dumper or dd
I hope to have understood what you're trying to achieve: if you want to test that code, you should re-factor the use Data::Dump; 1; inside a sub{} and then make that explode at will by mocking. In this case Test::MockObject would help a lot with testing, but seen that you're trying to minimize required deps you have to decide if the whole thing is still worth the extra mocking work "by hand".
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: load a module or another: Dumper or dd
by stevieb (Canon) on Jan 09, 2019 at 22:32 UTC | |
by markong (Pilgrim) on Jan 09, 2019 at 23:39 UTC |