awohld has asked for the wisdom of the Perl Monks concerning the following question:
I can open the Excel file in windows and it's okay.Software error: Could not open Excel spreadsheet file 'test.xls': Bad file descriptor +at /usr/lib/perl5/site_perl/5.8.6/Spreadsheet/BasicRead.pm line 306. For help, please send mail to the webmaster (user@localhost.localdomai +n), giving this error message and the time and date of the error.
And here's my XLS file test.xls#!/usr/bin/perl use CGI::Carp qw(fatalsToBrowser); use CGI; use Spreadsheet::BasicRead; my $cgi = CGI->new(); print $cgi->header; my $xlsFileName = 'test.xls'; my $ss = new Spreadsheet::BasicRead($xlsFileName) || die "Could not open '$xlsFileName': $!"; my $row = 0; while (my $data = $ss->getNextRow()) { $row++; print join(',', $row, @$data), "\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Spreadsheet::BasicRead - Open XLS Error???
by davidrw (Prior) on Sep 23, 2005 at 03:51 UTC | |
by awohld (Hermit) on Sep 23, 2005 at 06:05 UTC | |
|
Re: Spreadsheet::BasicRead - Open XLS Error???
by Corion (Patriarch) on Sep 23, 2005 at 06:21 UTC | |
by awohld (Hermit) on Sep 23, 2005 at 06:25 UTC | |
by dragonchild (Archbishop) on Sep 23, 2005 at 13:08 UTC |