Some time ago I had a similar error because I has not in the suposed directory.
1� try whith the full path. 2� see which is the directory where you really are. For getting the script directory you can use the use File::Spec; use FindBin; open(LISTFILE, ">>".File::Spec->join($FindBin::Bin, $listfn)) Hop can help Marcos > -----Original Message----- > From: Bryan Harris [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 22, 2004 8:02 AM > To: Beginners Perl > Subject: CGI script just stops... > > > > > This one baffles me: > > > print "<p>$listfn, I guess we got here.</p>\n"; > > > > # write additions to their file > > open(LISTFILE, ">>$listfn") || print "<p > class=error>$listfn could not be > > written: $!\n"; > > print LISTFILE join("\n", @newlist, ""); > > close(LISTFILE); > > > > print "<p>Here too?</p>\n"; > > This is part of a CGI script that I�ve written. It prints > the first �...we > got here�, but doesn�t get past the �open� statement, and it > doesn�t print > the �could not be written� message. > > Typical value of $listfn: ./lists/123.456.789.123-38267 > > The script resides in /cgi-bin, and there�s a folder > /cgi-bin/lists with > permissions 777 (I�ve tried other permissions w/o success). > It just doesn�t > want to create a file within that folder. > > Any ideas why? > > Thanks in advance! You all are great! > > - Bryan > > > > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>
