in reply to Re: variable scopes in Excel::Writer::XLSX
in thread variable scopes in Excel::Writer::XLSX
use strict; use Excel::Writer::XLSX; &func(@ARGV); { my $closure_workbook; sub func { my $file = 'perl.xlsx'; my $book = Excel::Writer::XLSX->new($file); if (@_) { $closure_workbook = $book; } my $worksheet = $book->add_worksheet(); $worksheet->write(0, 0, 'Hi Excel!'); } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: variable scopes in Excel::Writer::XLSX
by AnomalousMonk (Archbishop) on May 25, 2013 at 19:05 UTC | |
|
Re^3: variable scopes in Excel::Writer::XLSX
by Anonymous Monk on May 25, 2013 at 15:01 UTC | |
by johnrcomeau (Novice) on May 25, 2013 at 18:22 UTC | |
by Anonymous Monk on May 25, 2013 at 23:42 UTC |