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 Subject: File is not getting created in perl CGI 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... I am not able to debug also this issue. Please help in proceeding this.... #!/usr/bin/perl use CGI; my $cgi=new CGI; print $cgi->header(); print $cgi->start_html("Browser Information"); open (TXT, ">tmp.txt") || die "Can't create $file"; print TXT"This is test"; close TXT; Thanks Anish ********************************************************* Disclaimer: This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message and are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. ********************************************************* Visit us at http://www.mahindrabt.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>