Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!samsung!uunet!munnari.oz.au!uniwa!bilby.cs.uwa.oz.au!dunnart!janet From: janet@cs.uwa.oz.au (Janet Jackson) Newsgroups: comp.lang.perl Subject: full pathnames in "require" - MS-DOS Perl Message-ID: Date: 25 Jun 91 09:28:58 GMT Sender: usenet@bilby.cs.uwa.oz.au Organization: Dept. Computer Science, University of Western Australia. Lines: 26 Nntp-Posting-Host: dunnart Using MS-DOS Perl, I would like to be able to say something like require 'c:/writing/perl/util.ph'; rather than require '/writing/perl/util.ph'; (because I might not be working on c: drive at the time) but the former version is not recognised as a full pathname. Perl tries to find /c:/writing/perl/util.ph, for each in the @INC list. util.ph adds a couple of directories to @INC, so I don't have to worry about the locations of future "require"d files. This is a bit ugly - is there any way (environment variable? command line argument?) I can tell perl what should be in @INC? Can I put multiple directories in the PERLLIB (sp?) environment variable? If so, what's the syntax? (I just thought of that now and can't try it out for at least another 2 hours, unfortunately) This is in my recreational use of Perl, rather than that for which I get paid, so it's important :-) Janet Jackson (janet@cs.uwa.oz.AU) Department of Computer Science The University of Western Australia