Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Module::Build reccomends build_requires

by ysth (Canon)
on Jan 05, 2009 at 01:11 UTC ( #734090=note: print w/replies, xml ) Need Help??


in reply to Module::Build reccomends build_requires

eval{use Test::Do::Funky:Chicken;}
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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://734090]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2021-03-05 04:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favorite kind of desktop background is:











    Results (109 votes). Check out past polls.

    Notices?