I'm "requiring" a file into my Perl scripts that contain paths and other setup information. I am trying to NOT have to specify a full path so it will work as well on my Windows NT PWS as it does on the Unix server.
The "required" set up file is in my cgi-bin with other scripts in directories under it. If I require it using a path like "../setup.pl" Perl can't find the program, but if I use "cgi-bin/setup.pl" it can. I can't figure out why it works the second way and not the first since the scripts are in subdirectories! Any clues? Is there a better way of doing it short of specifying the whole path, which defeats what I am trying to do? Thanks!
Don
The "required" set up file is in my cgi-bin with other scripts in directories under it. If I require it using a path like "../setup.pl" Perl can't find the program, but if I use "cgi-bin/setup.pl" it can. I can't figure out why it works the second way and not the first since the scripts are in subdirectories! Any clues? Is there a better way of doing it short of specifying the whole path, which defeats what I am trying to do? Thanks!
Don