title: including perl module in a different directory in a single location which can be used for multiple files
body: <p>Let me describe my question.</p>
  
  <p>I have created a new perl module 
  ex:</p>
  
  <p>Module : sample/lib/module/sample.pm</p>
  
  <p>setenv SAMPLE /local/username/sample</p>
  
  <p>I am using this module in multiple files and am using </p>
  
  <p>use lib "$ENV{'SAMPLE'}/lib";</p>
  
  <p>in each and every file i am using the module.</p>
  
  <p>Is there a better solution ? instead of adding in each and every file the lib location to search for.</p>
  
  <p>I tried adding it in the main script which calls other scripts but it doesn't work. I get the error lib not found  @INC.</p>