in reply to Excel::SpreadSheet : Can't call method "set_column" on an undefined value
If you look at the synopsis of Spreadsheet::WriteExcel, then you will see:
use Spreadsheet::WriteExcel; # Create a new Excel workbook my $workbook = Spreadsheet::WriteExcel->new("perl.xls"); # Add + a worksheet $worksheet = $workbook->add_worksheet();
you are using ->sheets(0) and not add_worksheet() which is incorrect.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Excel::SpreadSheet : Can't call method "set_column" on an undefined value
by nathanvit (Beadle) on Sep 23, 2004 at 10:32 UTC | |
by Anonymous Monk on Sep 23, 2004 at 11:35 UTC |