title: Installing Perl Module in specified directory
body: <p>I am trying to install one of the Perl module in my server (ubuntu droplet from Digital Ocean). I wanted this module to be installed in <code>/home/vinod/my_test_folder/perl_practice/scripts/lib/</code> directory which I have already created.</p>
  
  <p>This is specific to one module. I don't want to install it in default path like <code>/usr/bin/perl</code>. I wanted it to be installed in above mentioned path.</p>
  
  <p>Here are the list of commands which I executed to install the <code>Email::Reply</code> perl module.</p>
  
  <pre><code>Downloaded module from metacpan
  tar xvfz Email-Reply-1.204.tar.gz
  cd Email-Reply-1.204/
  perl Makefile.PL PREFIX=/home/vinod/my_test_folder/perl_practice/scripts/lib/
  su
  &lt;password_for_root&gt;
  make
  make test 
  make install
  </code></pre>
  
  <p>When I execute <code>make install</code> command the following output got displayed on terminal screen</p>
  
  <pre><code>Manifying 1 pod document
  Installing /home/vinod/my_test_folder/perl_practice/scripts/lib/share/perl/5.26.1/Email/Reply.pm
  Installing /home/vinod/my_test_folder/perl_practice/scripts/lib/man/man3/Email::Reply.3pm
  Appending installation info to /home/vinod/my_test_folder/perl_practice/scripts/lib//lib/x86_64-linux-gnu/perl/5.26.1/perllocal.pod
  </code></pre>
  
  <p>And I could see the module got installed in <code>/home/vinod/my_test_folder/perl_practice/scripts/lib/share/perl/5.26.1/Email/Reply.pm</code> path, which is not right path which I mentioned in <code>PREFIX=</code>.</p>
  
  <p>Strange thing here I wrote one small script which uses <code>Email::Reply</code> module by mentioning module path in shebang line </p>
  
  <p>Code below:</p>
  
  <pre><code>#!/usr/bin/perl -I/home/vinod/my_test_folder/perl_practice/scripts/lib/share/perl/5.26.1/
  
  use EMail::Reply;
  
  print "Hi\n";
  </code></pre>
  
  <p>still its throws an error</p>
  
  <pre><code>Can't locate EMail/Reply.pm in @INC (you may need to install the EMail::Reply module) (@INC contains: /home/vinod/my_test_folder/perl_practice/scripts/lib/share/perl/5.26.1/ /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.26.1 /usr/local/share/perl/5.26.1 /usr/lib/x86_64-linux-gnu/perl5/5.26 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.26 /usr/share/perl/5.26 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at test.pl line 3.
  BEGIN failed--compilation aborted at test.pl line 3.
  </code></pre>
  
  <p>I want this module to be installed in <code>/home/vinod/my_test_folder/perl_practice/scripts/lib/</code>
  How to achieve this. Please help me.</p>