HELP! * GREY=local LOCAL HTML version of Foils prepared 18 March 97

Foil 15 More practical tips

From Introduction to CGI Programming CPS616 Spring 97 -- Spring Semester 97. by Nancy J. McCracken * Critical Information in IMAGE

Your Perl script is run with the current directory as the cgi-bin directory in which it resides, so in any file systems accessess that you program in Perl, the path names are evaluated accordingly. Suppose that you have the file system structure in the example below, then to open file1.txt or file2.txt from prog.pl, use:
open (FILE1, "file1.txt"); and open (FILE2, "../../htdoc/njm/file2.txt");



Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Tue Apr 29 1997