in reply to Re: using two arrays to make a table
in thread using two arrays to make a table
I imagine because he has 1 list of names, and he wants 10 at a time. Your code doesnt do that at all. (Sorry ;-)
But i agree with you that the 3 arg for is a bad call, especially considering his mistake with the initializer. Personally i would do this:
But its a little hard to say considering we dont know the constraints. For instance are there for sure a sufficient number of names?foreach $heading (@headings) { print $heading; print "".shift(@names) for 1..10; # the "". might not be needed, cant + remember :-) }
Yves / DeMerphq
---
Writing a good benchmark isnt as easy as it might look.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: using two arrays to make a table
by Abigail-II (Bishop) on Jun 19, 2002 at 13:31 UTC | |
by demerphq (Chancellor) on Jun 19, 2002 at 13:58 UTC | |
|
Re: Re: Re: using two arrays to make a table
by Bongo (Initiate) on Jun 19, 2002 at 02:51 UTC |