note
jethro
<p>I hope your script is well designed with subroutines to do the difficult tasks ;-). In that case you probably have a subroutine to generate a row of the html table. Then you just need to insert the following code (adapted to your circumstances, $x has a different name in your script):</p>
<c>
$opcode=$x->{opcode};
while (@{$x->{subfields}}) {
@params= splice(@{$x->{subfields}},0,5);
generate_html_row($opcode,@params);
$opcode='';
}
</c>
<p>Beware, this changes your datastructure. if you can't have that, make a copy of <c>@{$x->{subfields}}</c> and loop over the copy</p>
<p>If you don't have that subroutine it should be easy to extract the relevant code and make it one. Ok, you could do the same inline, but readability is much better with subroutines for distinct tasks</p>
833357
833357