RookiePerl has asked for the wisdom of the Perl Monks concerning the following question:
I am trying to assign an Excel spreadsheet to a global variable, and I am finding this does not work. If I assign it to a local variable (using the "my" prefix), it works just fine. Am I missing something?
use Spreadsheet::Write; $h=Spreadsheet::Write->new( file => 'sample.xls', format => 'xls', sheet => 'test'); $h->addrow('Hello',{ content => 'there', font_weight => 'bold', font_color => 'red', font_face => 'Times New Roman', font_size => 10, font_style => 'italic', });
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Global Variable for Worksheet?
by moritz (Cardinal) on Mar 21, 2012 at 15:41 UTC | |
|
Re: Global Variable for Worksheet?
by jmcnamara (Monsignor) on Mar 21, 2012 at 15:55 UTC |