-
open (INFILE, "somedata.txt");
@mydata = <INFILE>;
close (INFILE);
print $mydata[0];
open (OUTFILE, ">/forumdata/$mydata[0].txt");
why does this produce the error
Status: 302 Found Location: http://cgi1.tripod.com/bin/error?err...0line%2040.%0A URI: http://cgi1.tripod.com/bin/error?err...0line%2040.%0A Content-type: text/html
-
Probably has something to do with the Perl taint switch (/usr/bin/perl -t).
Seems to me like it limits which directories can be written to.
Also check directory and file permissions.
Oreilly as updated their Perl web programming book.
It will be released in July. They have a sample
chapter on their web site. The chapter is on security
and it discusses the taint feature.