Path: utzoo!censor!geac!torsqnt!lethe!yunexus!ists!helios.physics.utoronto.ca!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!jpl-devvax!lwall From: lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) Newsgroups: comp.lang.perl Subject: Re: Including home-rolled libraries Message-ID: <11648@jpl-devvax.JPL.NASA.GOV> Date: 1 Mar 91 18:30:36 GMT References: <16935@venera.isi.edu> <1991Feb28.130152.25669@cs.ruu.nl> Reply-To: lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) Distribution: comp Organization: Jet Propulsion Laboratory, Pasadena, CA Lines: 15 In article <1991Feb28.130152.25669@cs.ruu.nl> piet@cs.ruu.nl (Piet van Oostrum) writes: : So try to let the shell do the expansion: : : require <~/.perlLib/random.pl>; That's cute, but a lot less efficient (currently) than saying require "$ENV{'HOME'}/.perlLib/random.pl"; or, more to the point, unshift(@INC, "$ENV{'HOME'}/.perlLib"); require "random.pl"; Larry