Hi Jeff,
Jeff Zucker wrote:
Prakash Prabhakar wrote:
I am using the following code in my .cgi progam (compiling with
perl-5.8.6,
UNIX OS). It doesnt work. Could you please let me know what could be
wrong?
I do not get any warnings/error messages/expected output. The .cgi
and the
.csv are in the same directory.
My guess is that the line endings are not set explicitly (they default
to windows line endings).
Why do you use the Windows line endings as the default? Why not the
value of $/?
See also https://rt.cpan.org/Public/Bug/Display.html?id=20340
Try adding this :
$dbh->{'csv_tables'}->{'info'} = {
'file' => 'testtable.csv',
'eol' => "\n"
};
Be sure to use double quotes qround the \n. If that doesn't work try
a line ending specific to your OS (e.g. '\012' for *nix).
Cheers,
Renee