advix has asked for the wisdom of the Perl Monks concerning the following question:

used Spreadsheet::ParseExcel_XLHTML instead of Spreadsheet::ParseExcel because of slow speed of ParseExcel.
But ParseExcel_XLHTML shows "Ambiguous use of *{Spreadsheet::ParseExcel::new} resolved to *Spreadsheet::ParseExcel::new a C:/Perl/site/lib/Spreadsheet/ParseExcel_XLHTML.pm lime 107. ... whith the perl code in the SYNOPSIS,


use Spreadsheet::ParseExcel_XLHTML;
my $excel = new Spreadsheet::ParseExcel_XLHTML;
my $book = $excel->Parse('/some/excel/file.xls');
# Cheesy CSV printer...
for my $sheet (@{$book->{Worksheet}}) {
print STDERR "Worksheet: ", $sheet->{Name}, "\n";
for my $i ($sheet->{MinRow}..$sheet->
{MaxRow}) {
print join ',', map { qq|"$_"| } map { defined $_ ?
$_->Value : "" } @{$sheet->{Cells}$i};
print "\n";
}
}

Can anyone tell me how I can fix this problem? Thanks
  • Comment on Spreadsheet::ParseExcel_XLHTML shows "Ambiguous use of *{Spreadsheet::ParseExcel::new}..."

Replies are listed 'Best First'.
Re: Spreadsheet::ParseExcel_XLHTML shows "Ambiguous use of *{Spreadsheet::ParseExcel::new}..."
by Anonymous Monk on Jun 28, 2009 at 12:37 UTC
    Ignore it, its not a problem :)

    or

    use arrow notation

    ...= Spreadsheet::ParseExcel_XLHTML->new(...);
      Although using arrow notation also displays the same messages. Anyway I will ignore them.

      Spreadsheet::ParseExcel_XLHTML can be used on Windows?
      my $workbook = $parser->Parse("$somefile"); displays xlhtml help messages instead it performs parsing.
      Thanks a lot
      JH