title: How to run perl script from any where (any directory)
body: <p>I have a perl script exist in the follwoing path (/home/Leen/Desktop/Tools/bin/tool.pl)
  Every time I want to run this tool I go to the terminal </p>
  
  <pre><code>&gt;
  </code></pre>
  
  <p>and then change the directory to </p>
  
  <p>..../bin></p>
  
  <p>Then I run the perl by writing </p>
  
  <pre><code>..../bin&gt; perl tool.pl file= whatever config= whatever
  </code></pre>
  
  <p>The problem is that I want to run this perl script without the need to go to the bin folder where it exist . so I can run perl script from any directory and as soon as I enter shell
  I went to the etc/environment and I wrote the follwoing</p>
  
  <p>export PERL5LIB=$PERL5LIB:/home/Leen/Desktop/Tools/bin</p>
  
  <p>But when I go to terminal and write the follwoing straight ahead without going to bin folder where tool.pl exist </p>
  
  <pre><code>&gt;perl tool.pl file=... config=...
  </code></pre>
  
  <p>it says the file "tool.pl" does not exist???</p>