Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Could any one help me to add this entry in the excel sheet.use strict; use Spreadsheet::ParseExcel; use Spreadsheet::WriteExcel; use Spreadsheet::ParseExcel::Utility qw(ExcelLocaltime); use DateTime::Format::Excel; my @Array = (); my $server = "localhost"; my $user = "lion"; my $pass = "tiger"; push(@Array, $server); push(@Array, $user); push(@Array, $pass); my $inputfile = "C:\\perl\\bin\\input.xls"; $workbook = Spreadsheet::WriteExcel->new("$inputfile"); $sheet = $workbook->add_worksheet("serverdata"); print"File=> $inputfile worksheet=> $sheet\n"; # Add a Format $format = $workbook->add_format(); $bgformat = $workbook->add_format(); for(my $i =0; $i <= 2; $i++){ $sheet1->write(0, $i, $writeArray[$i], $bgformat); } Existing File content(input.xls): server user pass red lang pian green weer xisass Expected output File content(input.xls): server user pass red lang pian green weer xisass loalhost lion tiger
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Append row into existing excel file
by roboticus (Chancellor) on Apr 04, 2009 at 13:09 UTC | |
by Anonymous Monk on Apr 04, 2009 at 13:47 UTC | |
by Corion (Patriarch) on Apr 04, 2009 at 14:01 UTC | |
by roboticus (Chancellor) on Apr 05, 2009 at 18:17 UTC | |
|
Re: Append row into existing excel file
by VinsWorldcom (Prior) on Apr 04, 2009 at 15:06 UTC | |
|
Re: Append row into existing excel file
by Bloodnok (Vicar) on Apr 04, 2009 at 13:20 UTC | |
by Anonymous Monk on Apr 04, 2009 at 13:43 UTC | |
by Bloodnok (Vicar) on Apr 04, 2009 at 15:39 UTC |