RE: File is not getting created in perl CGI

2005-01-31 Thread Bob Showalter
Anish Kumar K. wrote: > File is not getting created in perl CGI mode... > > It is surprising that the file is not created in the CGI > > I tried this from the command line it is getting created there... Most likely explanation is that the web server user does not have write privilege in the

Re: File is not getting created in perl CGI

2005-01-31 Thread Ing. Branislav Gerzo
Anish Kumar K. [AKK], on Monday, January 31, 2005 at 19:41 (+0530) contributed this to our collective wisdom: AKK> #!/usr/bin/perl use strict; use warnnings; #always put this at the top! AKK> use CGI; AKK> open (TXT, ">tmp.txt") || die "Can't create $file"; what is in $file ? :) AKK> prin

RE: File is not getting created in perl CGI

2005-01-31 Thread Manav Mathur
use CGI::Carp qw(fatalsToBrowser) ; will redirect the error messages to the browser(if you are not checking the webserver logs, please do so immediately). Manav -Original Message- From: Anish Kumar K. [mailto:[EMAIL PROTECTED] Sent: Monday, January 31, 2005 7:41 PM To: beginners perl Su