Hi: I stumbled across the following in the book by James Tisdall, Beginning Perl for Bioinformatics, O'Reilly Pub, ISBN: 0-596-00080-4: pg. 103 - There's one last thing to know about using modules to load in subroutines: the Perl program needs to know where to find the module. If you're doing all your wok in one folder, everything should work okay. If Perl complains about not being able to find BeginPerlBioinfo.pm, give full pathname information to the module. If the full pathname is /home/tisdall/book/BeginPerlBioinfo.pm, then use this in your program: use lib '/home/tisdall/book'; use BeginPerlBioinfo; ------------------------ When I did that, this is what came up: tompoe@aether:~/perlbiobook > perl example8-1.pl Can't locate BegPerlBioInfo.pm in @INC (@INC contains: /home/tompoe/perlbiobook /usr/local/lib/perl5/5.6.1/i686-linux /usr/local/lib/perl5/5.6.1 /usr/local/lib/perl5/site_perl/5.6.1/i686-linux /usr/local/lib/perl5/site_perl/5.6.1 /usr/local/lib/perl5/site_perl .) at example8-1.pl line 7. BEGIN failed--compilation aborted at example8-1.pl line 7. tompoe@aether:~/perlbiobook >
When you look close you will see that the first place it looked was in /home/tompoe/perlbiobook . That is the path I added to @INC when I added, use lib '/home/tompoe/perlbiobook'; to the program. The reason it failed, was because I had misspelled BeginPerlBioinfo. The point here, is, that Perl allows us to control @INC simply by using the "use lib '/path/to/info';" and then "use info;" statements. The author then follows with: "There are other ways to tell Perl where to look for modules; consult the Perl documentation for use." So, my question is, where is he thinking this info is? Can someone point me to a discussion of this topic? Thanks, Tom Poe Reno, NV http://www.studioforrecording.org/ http://www.ibiblio.org/studioforrecording/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]