in reply to Help with Spreadsheet::ParseExcel
Side note: The following code will not die if the file does not exist. Try it yourself:use warnings; use strict; use Spreadsheet::ParseExcel; my $f_to_parse = "accounts.xls"; my $workbook = Spreadsheet::ParseExcel::Workbook->Parse($f_to_parse); for my $sheet (@{$workbook->{Worksheet}}) { print "Sheet: ", $sheet->{Name}, "\n"; }
Refer to Spreadsheet::ParseExcel (the error method).my $workbook = Spreadsheet::ParseExcel::Workbook->Parse($f_to_parse)or + die "Unable to open $f_to_parse\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Help with Spreadsheet::ParseExcel
by Anonymous Monk on Jan 11, 2011 at 18:21 UTC | |
by toolic (Bishop) on Jan 11, 2011 at 19:49 UTC |