HELP! * GREY=local LOCAL HTML version of Foils prepared 2 June 1996

Foil 15 More practical tips

From Introduction to CGI Programming ECS400 Senior Undergraduate Course -- Spring Semester 1996. 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 Feb 18 1997