Path: utzoo!attcan!uunet!mcsun!hp4nl!alchemy!piet From: piet@cs.ruu.nl (Piet van Oostrum) Newsgroups: comp.lang.perl Subject: Re: Including home-rolled libraries Message-ID: <1991Feb28.130152.25669@cs.ruu.nl> Date: 28 Feb 91 13:01:52 GMT References: <16935@venera.isi.edu> Sender: piet@cs.ruu.nl (Piet van Oostrum) Reply-To: piet@cs.ruu.nl (Piet van Oostrum) Distribution: comp Organization: Dept of Computer Science, Utrecht University, The Netherlands Lines: 24 In-Reply-To: jas@ISI.EDU (Jeff Sullivan) >>>>> jas@ISI.EDU (Jeff Sullivan) (JS) writes: JS> The problem is, when I say; JS> require "~/.perlLib/random.pl"; JS> I get the error: JS> Can't locate ~/.perlLib/random.pl in @INC at roll line 3. The problem is that ~/... is not a proper filename (unless in your current directory you have a directory named '~'. The expansion of ~ to your home directory is a function of the shell (and not all shells do this). So try to let the shell do the expansion: require <~/.perlLib/random.pl>; -- Piet* van Oostrum, Dept of Computer Science, Utrecht University, Padualaan 14, P.O. Box 80.089, 3508 TB Utrecht, The Netherlands. Telephone: +31 30 531806 Uucp: uunet!mcsun!ruuinf!piet Telefax: +31 30 513791 Internet: piet@cs.ruu.nl (*`Pete')