this was my error, any ideas? "fatals to browser" does not tell much...? compared
to my asp/vbScript pages...
Software error:
couldn't find diagnostic data in /usr/local/lib/perl5/5.6.0/pods/perldiag.pod
/usr/local/lib/perl5/5.6.0/i686-linux /usr/local/lib/perl5/5.6.0
/usr/local/lib/perl5/site_perl/5.6.0/i686-linux /usr/local/lib/perl5/site_perl/5.6.0
/usr/local/lib/perl5/site_perl . csvtest.pl at
/usr/local/lib/perl5/5.6.0/diagnostics.pm line 241, <POD_DIAG> line 549.
For help, please send mail to the webmaster (Your Webmaster), giving this error
message and the time and date of the error.
from this script below...
#!/usr/bin/perl -w
use CGI::Carp qw(fatalsToBrowser);
#howdy
use CGI qw(param);
use strict; # option explicit, but better =o)
use warnings;
use diagnostics -verbose; enable diagnostics;
use CGI;
use CGI::Carp 'fatalsToBrowser';
print CGI->header, CGI->start_html, "<table border=1>\n";
# you might also want some column headers here.
# I don't know the filename, so edit this:
open CSV, "csv.csv" or die $!;
# inserting from below:
while(<CSV>) { # read a line
s/^/<TR><TD>/; # start the table row and first cell
s{,}{</TD><TD>}g; # seperate fields into cells
s{$}</TD></TR>}; # close the last cell and the row
print "$_\n"; # I like to add the newline
}
close CSV;
# then end:
print "</table>",CGI->end_html;
exit;
----- Original Message -----
From: "Paul" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; "bc" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, July 24, 2001 1:49 PM
Subject: Re: flat file (addendum)
>
> --- Paul <[EMAIL PROTECTED]> wrote:
> Maybe instead of just
>
> > use CGI;
>
> you should say
>
> use CGI;
> use CGI::Carp 'fatalsToBrowser';
>
> That'll help you debug. =o)
>
> __________________________________________________
> Do You Yahoo!?
> Make international calls for as low as $.04/minute with Yahoo! Messenger
> http://phonecard.yahoo.com/