chandantul has asked for the wisdom of the Perl Monks concerning the following question:
My excel writing last element twice in consecutive rows. i have an excel from where its reading below
Reading 2 rows like below |900000001| |900200001|
Writing 3 rows instead of 2
Sandy Candy Sandy.Candy@abc.com AD Chandy Ganny Chandy.Ganny@nbc.com AD Chandy Ganny Chandy.Ganny@nbc.com AD
if ($reecode ne "404") { for my $i (0..$#resext) { $response = $resext[$i]{id}; #$reslogin = $resext[$i]{login}; $resfn = $resext[$i]{firstName}; $resln = $resext[$i]{lastName}; $resdsrip = $resext[$i]{email}; $resuser = $resext[$i]{type}; $worksheet1->write($r, 0, $resfn); $worksheet1->write($r, 1, $resln ); $worksheet1->write($r, 2, $resdsrip); $worksheet1->write($r, 3, $resuser); $r += 1; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: My EXCEL.Writter writing last element twice in consecutive rows.
by GrandFather (Saint) on Dec 22, 2020 at 20:10 UTC | |
by Anonymous Monk on Dec 22, 2020 at 21:13 UTC | |
by chandantul (Scribe) on Dec 24, 2020 at 04:14 UTC |