you can also use the full path for @INC, if you do not want use the MacPerl lib folder. push (@INC, "machd:mystuff:libfolder"); like a unix script, but this doesn't work well for "porting" to other macs. I like to keep the files togeher (main program and requires) in the same folder, for a droplet I make an alias and leave the folder with the "source" files alone. If the .pl file is ref'd by other programs an alias works also (remove the alias from the name and watch out for spaces) . But be sure to include the original .pl file if you put the program on another mac. Todd On Tue, 4 Jun 1996, John Springer wrote: > I have a file that just contains subroutines that I want to use with > several other programs. I've never done this before, and "require" looked a > bit easier than "use", but I could be convinced otherwise. > > I called it mysubs.pl and ended the file with '1'. > > But every time I make an edit to the main program, it tells me "can't find > mysubs.pl" until I save the edited main. I assume this has something to > do with my edited file being in a temp directory or something. What do I > do to eliminate this problem? > > And how do I put my file into @INC, which is where it seems to need to be? > > J. > > -->John Springer <http://www.scruznet.com/~springer> > Still the Penultimate Mac bigot. > > > >