I think I may have answered my own question.
Is there a "better way" (TM) or a more efficient way?

eval { require Tk };
if ($@) { # module is NOT installed
   # code here to make sure user is root and wants to proceed
   system('perl -MCPAN -e \'CPAN::Shell->install("Tk")\'');
}
use Tk;
etc. etc. Tk app code here.


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to