Subject: | Spreadsheet-ParseExcel-Simple improvement |
Date: | Tue, 20 Mar 2007 16:55:11 +0300 |
To: | bug-Spreadsheet-ParseExcel-Simple [...] rt.cpan.org |
From: | Alexander mcLander <mclander [...] list.ru> |
Hi, Tony.
It will be great if you make some patch.
# line 108 \/
sub read {
my $class = shift;
- my $book = Spreadsheet::ParseExcel->new->Parse(shift) or return;
+ my $book = Spreadsheet::ParseExcel->new->Parse(@_) or return;
bless { book => $book }, $class;
}
This behaviour is usefull for works with National languages, for instance;
use Spreadsheet::ParseExcel::Simple;
use Spreadsheet::ParseExcel::FmtUnicode;
my $oFmt = Spreadsheet::ParseExcel::FmtUnicode->new(Unicode_Map => 'CP1251');
my $xls = Spreadsheet::ParseExcel::Simple->read($file, $oFmt);
Best reagards,
Alexander mcLander