in reply to Testing of exception during import
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
|
|---|