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