in reply to Why does Capture::Tiny require loading via BEGIN to successfully function?

I use the $haveModule = eval { require Module; 1; } idiom fairly frequently,

I think anonymonk has explained the problem, but I just wanted to ask you what advantages you see in detecting module absence at runtime via require, over compile-time as would happen with use?


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
RIP an inspiration; A true Folk's Guy
  • Comment on Re: Why does Capture::Tiny require loading via BEGIN to successfully function?