How to find the location of a Perl module on a Linux server?
<p>We moved everything on our old server to a new server. One of the websites on our new server uses a Perl back-end. When I go to this Perl site in my browser it throws a 500 internal server error. When I run the Perl script from the command line like this:</p>

<p><code>perl -wc login.pl</code></p>

<p>I get this error:</p>

<p><code>Can't locate LoadINC.pm</code></p>

<p>and at the top of login.pl there is this:</p>

<pre>#!/usr/bin/perl

BEGIN { use LoadINC; }

...</pre>

<p>So it looks like that <code>LoadINC</code> Perl module is missing from our new server.</p>

<p>The old server is still running and doesn't have this issue. So my thought is to locate the <code>LoadINC</code> module on the old server and then put it in the same place on the new server. Or is there a better approach? Is the module hidden in some binary file? Are the places to look for Perl modules not the same on both servers?</p>

<p>One other thing to note, the Perl version on the old server is 5.8.8 and the version on the new server is 5.16.3.</p>