The solution is to place the worksheet reference in the same scope as the workbook or else to call the the workbook close() method to ensure that the destructors are called in the right order:
See the close() section of the Spreadsheet::WriteExcel docs for more information.foreach my $file (@files) { if ( !( ( $file eq "." ) || ( $file eq ".." ) ) ) { ... } } $workBook->close();
--
John.
In reply to Re: Work Sheets in excel in Perl
by jmcnamara
in thread Work Sheets in excel in Perl
by anand_perl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |