P is for Practical | |
PerlMonks |
Re: using 'use' conditionallyby Anonymous Monk |
on Nov 05, 2002 at 10:34 UTC ( [id://210424]=note: print w/replies, xml ) | Need Help?? |
Have a look in the Perl Cookbook : "Recipe 12.2 Trapping Errors in require or use".
It propose to trap problems with require using eval.
It also says to do it in a BEGIN block (compile time versus run time).
In Section
Seekers of Perl Wisdom
|
|