The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 07-01-2009
otheus's Avatar
otheus otheus is offline Forum Staff  
Moderator ala Mode
  
 

Join Date: Feb 2007
Location: Innsbruck, Austria
Posts: 1,886
The advisable solution is to localize all includes/required modules. Having said that, you could try something like this, in place of your use:
Code:
BEGIN { 
  if (-r path-to-module)  { require module; import Module; } 
}
So what will happen if the module is unavailable? the rest of your code will probably fail to compile.