in reply to Re^3: variable scopes in Excel::Writer::XLSX
in thread variable scopes in Excel::Writer::XLSX
I misused the word 'closure' in my original post. I wanted to assign the workbook to a static variable. I believe that the structure I used is a commonly idiom in Perl for making a variable static.
I never figured out why the error was occurring, but it disappeared when I explicitly called $workbook->close instead of letting the destructor handle it when the program exits. The workbook was also saved correctly.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: variable scopes in Excel::Writer::XLSX (closure)
by Anonymous Monk on May 25, 2013 at 23:42 UTC |