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>