anand_perl has asked for the wisdom of the Perl Monks concerning the following question:
excel_write is the subroutine which writes the two array's passed to it in a excel file.my $workbook = Spreadsheet::WriteExcel->new("result.xls"); if ( $somevalue == 1 ) { my $workSheet = $workbook->add_worksheet('PASS'); excel_write ( $workSheet,@pageid_pass,@plot_pass ); }
Using this code i am not able to create the excel sheet with data.sub excel_write { my ( $worksheet,@pageid,@plotname ) = @_; $workSheet->write($row,$col,"PLOTNAME",$format); $col++; $workSheet->write($row,$col,"PAGEID",$format); $row++; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Passing Excel Objects in Perl
by MidLifeXis (Monsignor) on Jul 30, 2008 at 11:17 UTC | |
by Anonymous Monk on Jul 30, 2008 at 11:29 UTC | |
by MidLifeXis (Monsignor) on Jul 30, 2008 at 11:49 UTC | |
|
Re: Passing Excel Objects in Perl
by moritz (Cardinal) on Jul 30, 2008 at 11:14 UTC | |
|
Re: Passing Excel Objects in Perl
by MidLifeXis (Monsignor) on Jul 30, 2008 at 12:35 UTC | |
|
Re: Passing Excel Objects in Perl
by perlseeker19 (Novice) on Jul 30, 2008 at 12:16 UTC | |
by perlseeker19 (Novice) on Jul 30, 2008 at 12:33 UTC |