Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!decwrl!mcnc!uvaarpa!mmdf From: worley@compass.com (Dale Worley) Newsgroups: comp.lang.perl Subject: '~' in file names Message-ID: <1991Feb28.151019.22944@uvaarpa.Virginia.EDU> Date: 28 Feb 91 15:10:19 GMT Sender: mmdf@uvaarpa.Virginia.EDU (Uvaarpa Mail System) Reply-To: worley@compass.com Organization: The Internet Lines: 24 From: jas@ISI.EDU (Jeff Sullivan) 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. The problem is that '~' is not recognized by the file system. You can use it in commands because the shell translates '~/' at the beginning of an argument into '$HOME/', etc. For instance, if you say "ls ~" you get a listing of your home directory, but if you say "ls '~'" the quoting inhibits the expansion of the '~', and you get "~ not found". Dale Dale Worley Compass, Inc. worley@compass.com -- But Calvin is not a kind and loving god! He's one of the _old_ gods! He demands sacrifice! -- "Calvin and Hobbes"