Sharan Basappa wrote: > > Ok, so if I understand you correctly this is what I have to do > > 1) install module C in a/b/c directory (for example) > > 2) install module D in a/b/d directory > > 3) copy the .pm files installed under a/b/c and a/b/d to a/b/my_lib > > 4) include a/b/my_lib in perl code > > So you are also saying that the path I am including should have .pm file under > the directory. Please note that currently under the lib directory installed, > there is no .pm file
- You should install modules C and D to /my/local/perl/stuff as described in perldoc perlmodinstall - You shouldn't copy any files at all - In your code you should use lib '/my/local/perl/stuff'; or use lib '/my/local/perl/stuff/lib/site_perl'; (take a look at the installation log to see which) then use C; use D; A module like My::New::Module will have a file called My/New/Module.pm beneath the directory you have indicated by 'use lib'. There may also be a lot of other stuff that needs building and copying elsewhere, which is why you need to install things properly instead of copying files and hoping to get them in the right place. HTH, Rob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/