Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I tried using ListMore::Utils each_array but its trying to insert for 9 times with null statements where it can't find pairs from each array. How can I handle multiple arrays with different size.@arrray1 = ['a','b','c']; @array2 = ['a','b']; @array3 = ['a','b','c','d']; while(my($array1,$array2,$array3) = $iteration->()){ warn " iteration : $array1,$array2,$array3"; $sthgetCompany->execute($aray2) or die 'Cannot execute the statem +ent'. $dbh_oracle->errstr;; #insertion to the database goes here. } # end of while loop #.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Looping through multiple arrays
by choroba (Cardinal) on Mar 05, 2015 at 11:51 UTC | |
by Anonymous Monk on Mar 05, 2015 at 12:12 UTC | |
|
Re: Looping through multiple arrays
by Discipulus (Canon) on Mar 05, 2015 at 11:51 UTC | |
|
Re: Looping through multiple arrays
by karlgoethebier (Abbot) on Mar 05, 2015 at 17:23 UTC | |
by parv (Parson) on Mar 05, 2015 at 18:49 UTC | |
by karlgoethebier (Abbot) on Mar 05, 2015 at 19:22 UTC | |
| A reply falls below the community's threshold of quality. You may see it by logging in. |