Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!isi.edu!venera.isi.edu!jas From: jas@ISI.EDU (Jeff Sullivan) Newsgroups: comp.lang.perl Subject: Including home-rolled libraries Message-ID: <16935@venera.isi.edu> Date: 27 Feb 91 18:55:22 GMT Sender: news@isi.edu Distribution: comp Organization: USC-ISI Lines: 34 I have gotten a new random number library together which reimp,ementes the srand and rand functions according to Knuth (Thanks, Bill!). Anyway, I wanted to create a directory for the libraries I'm collecting, so I created a library called ~/.perlLib where I symbolically link to all of the perl libraries I've FTP'd or created. The problem is, when I say; require "~/.perlLib/random.pl"; I get the error: Can't locate ~/.perlLib/random.pl in @INC at roll line 3. So, I tried this at the top of my program: #!/usr/bin/perl -I~/.perlLib to add ~/.perlLib to the @INC array, and it's there when I look, but the same error occurs. What am I doing wrong? jas -- -------------------------------------------------------------------------- Jeffrey A. Sullivan | Senior Systems Programmer jas@venera.isi.edu | Information Sciences Institute jas@isi.edu | University of Southern California