Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hi
I am trying to open Excel and ODS files with longnames paths (and possibly not Latin characters) on Windows. I use Win32::LongPath::openL to open the files. For XLS I then use Spreadsheet::ParseExcel. This works fine. For ODS I use Spreadsheet::Read. This doesn't work.
use Spreadsheet::Read; use Spreadsheet::ParseExcel; my $InputFile; Win32::LongPath::openL (\$InputFileReadable, '<', $InputFile); #opening XLS my $parser = Spreadsheet::ParseExcel->new(); my $workbook = $parser->parse($InputFileReadable); if ( defined $workbook ) { print "I could read the XLS file\n"; } #opening ODS my $workbook2 = ReadData ($InputFileReadable); if ( defined $workbook2 ) { print "I could read the ODS file\n"; }
Why is $workbook2 always undefined?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Spreadsheet::Read Win32::LongPath::openL
by vr (Curate) on Dec 09, 2018 at 18:20 UTC | |
by Anonymous Monk on Dec 10, 2018 at 09:50 UTC | |
|
Re: Spreadsheet::Read Win32::LongPath::openL
by Tux (Canon) on Dec 09, 2018 at 16:47 UTC |