HELP! * GREY=local LOCAL HTML version of Foils prepared 10 Sept 1996

Foil 15 More practical tips

From CGI Programming --ECS400 fall 96 ECS400fall96 Senior Undergraduate Course -- Fall Semester 96. 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 Wed Feb 19 1997