janet@cs.uwa.oz.au (Janet Jackson) (06/25/91)
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 <foo>/c:/writing/perl/util.ph, for each <foo> 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