Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: Windows Help
by Aristotle (Chancellor) on Aug 18, 2002 at 00:56 UTC
    There is no "Windows way to do this". Could you be more specific? Do you get any error messages, and if so, what do they say? "It don't work" is not very helpful.

    Makeshifts last the longest.

Re: Windows Help
by Mr. Muskrat (Canon) on Aug 18, 2002 at 04:53 UTC

    While we are waiting for some details Anonymous Monk, let me fill you in on a little secret. I've told Y'all it before and I'll probably tell Y'all it again.... IIS likes full paths included with the filename. So it's not simply "testfile" it has to be "c:/this/is/the/complete path/to my stupid little/testfile"*, or whatever you happen to call your file. (What!??? I like silly names and paths for my files, don't you?) So if you want to require (do people still use that?) a file then you will need to require the full and complete filename with path.

    * I have used slashes because it saves time and characters. Feel free to use double backslashes if you want too.

      The require statement will be interpreted the same whether PERL.EXE was invoked to run the script from IIS, Apache, a command line, etc. It'll always look for the file being required in the paths defined in the @INC array, and IIS can't do anything to change that. I use require and IIS all the time, and never include the path to the file being required. The web server is kind of "out of the loop" at that point. Unless by 'require' you don't mean PERL'S require statement, but something entirely different.

      Do you maybe mean that its behavior is different when referencing files in VIRTUAL directories, somehow?