Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: using 'use' conditionallyby broquaint (Abbot) |
on Nov 05, 2002 at 11:04 UTC ( [id://210427]=note: print w/replies, xml ) | Need Help?? |
Although not directly applicable to the problem at hand (which can be solved with a require) there is the if module (core in 5.8.0) which will use a Perl module if a condition holds. The only problem with this is that it happens at compile time, so couldn't be directly applied in your particular case.
HTH
_________ update: doh, just noticed LTjake's node above. note to self - recaffeinate head before posting
In Section
Seekers of Perl Wisdom
|
|