Re: File generation not working

2004-12-07 Thread Jonathan Paton
Dear Anish, AFAICT this is not a perl problem, but errors in your code are hindering discovering why. The cause of the problem is VERY LIKELY to be that the script is run with minimum permissions, under a different user and possibly restricted to below a certain subdirectory. It should be "or di

File generation not working

2004-12-06 Thread Anish Kumar K.
Hi I am facing problem with File Generation with CGI.. In a CGI Program if (!-e "/home/anish/data.xml") { print $cgi->p("Entered Hyere"); open OUTPUT, ">/home/anish/data.xml" || die "Cannot create the XML File"; print OUTPUT "\\n"; print OUTPUT "\\n"; close OUTPUT;