I am not sure how you can check within a script. But to check to see if the modules are loaded on your system you can issue the following command at the command line
Instmodsh Then -l Hope that helps. Robert Gorrebeeck Sr. EDI Developer -----Original Message----- From: sormariano [mailto:[EMAIL PROTECTED] Sent: Thursday, August 28, 2008 10:25 AM To: beginners@perl.org Subject: Check for modules presence Hello to everybody, I made a script that uses some modules. Obviously if one of the modules is not installed, the script doesn't start. I'd like to have the possibility to notify to the user which are the modules he still requires and that should have to be installed.. I think I could wrote an "install script" that checks the modules presence and if all it's ok, it starts the main script. So here I have several questions: 1) is this a good way to proceed ? 2) how could I check the module presence ? 3) Can I start the main script with a 'system mainscript.pl' Thank you in advance. Francesco -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ Email Confidentiality Notice: The information contained in this transmission is confidential, proprietary or privileged and may be subject to protection under the law, including the Health Insurance Portability and Accountability Act (HIPAA). The message is intended for the sole use of the individual or entity to whom it is addressed. If you are not the intended recipient, you are notified that any use, distribution or copying of the message is strictly prohibited and may subject you to criminal or civil penalties. If you received this transmission in error, please contact the sender immediately by replying to this email and delete the material from any computer. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/