UPOINT:: CGI Scripts: FAQ

Title: General Help: Path-related problems for NT or MacPerl users
Methods of setting the paths if you are using NT or MacPerl.

There are several things to keep in mind when using NT. First, paths to files may require two backslashes, like:

$data="c:\\datafiles\\mydata.txt";

Because the backslash is an escape character in Perl. In some versions, you can reference files the same way you do in Unix, with forwardslashes:

$data="c:/datafiles/mydata.txt";

If you are using MacPerl, the script should work except that you will have to use colons between directories and files (consult your server documentation or contact your server administrator).

  Powered by Document Publisher