You need require or eval STRING for that. eval BLOCK compiles the block at the same time the rest of your code is compiled, and the eval only traps runtime exceptions while executing BLOCK. Since "use" takes effect at compile time, your code will die when the module isn't found.eval{use Test::Do::Funky:Chicken;}
In reply to Re: Module::Build reccomends build_requires
by ysth
in thread Module::Build reccomends build_requires
by mandog
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |