Stephen Eko Budiharto wrote:

> hi list,
> I would like to ask about this error message.
> when I  ran the script under DOS command, it ran well, but when I ran it 
> using browser, I got this error message. Can anyone help me to explain 
> what the error means?
> 
> 
> 'C:\webmis\cgi-bin\helloWorld_di_write_ke_file.pl' script produced no output
> 
> perl script:
> 
> #!/usr/local/bin/perl

use strict;
use warnings;

This may also help to see your error messages:

use CGI::Carp qw(carpout fatalsToBrowser);

> use CGI;
> 
> $query = new CGI;

Get your header out first before any possible prints or error prints:

print $query->header;

> $datafile = "../test.txt";
> 
> open (DATAFILE,">$datafile") || die "Can't open $datafile: $!\n";
> 
> print DATAFILE "Hello World";
> 
> close DATAFILE;
> 
> print $query->header;
> 
> print "saved\n"


-- 
  ,-/-  __      _  _         $Bill Luebkert    Mailto:[EMAIL PROTECTED]
 (_/   /  )    // //       DBE Collectibles    Mailto:[EMAIL PROTECTED]
  / ) /--<  o // //      Castle of Medieval Myth & Magic http://www.todbe.com/
-/-' /___/_<_</_</_    http://dbecoll.tripod.com/ (My Perl/Lakers stuff)

_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to