http://www.perlmonks.org?node_id=570144


in reply to how can i list @INC content

Script to update your PPM Repositories, by tphyahoo, will let you easily add repositories (such as the one bart recommended).

If you just want to view the contents of @INC, the following script might be useful:

#!/usr/local/bin/perl -w # Display the contents of @INC warn "\@INC is: ", join(' ', @INC), "\n";

However, I think prasadbabu's suggestions for proceeding further are just the ticket for you.

HTH,

planetscape

Replies are listed 'Best First'.
Re^2: how can i list @INC content
by science_gone_bad (Beadle) on Aug 29, 2006 at 18:29 UTC

    Also there's an easier way to find where @INC points to. Just enter perl -V on the command line, and @INC is listed as one of the outputs (along with trivia like what compiler was used to compile the perl you're using, library paths, etc.)

    Any modules you install will end up in one of those paths when it gets installed. You can also put custom modules there to be found for other reasons. I've split up things like this for various weird reasons dealing with multiple perl versions on different install locations on the same machine.