from the docs:
BEGIN { require Module; Module->import( LIST ); }
except that Module must be a bareword.
alternatively you could try to string eval it, IMHO
eval 'use MODULE args'; # run-time
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
In reply to Re: Testing of exception during import
by LanX
in thread Testing of exception during import
by Dirk80
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |