Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
$table_one .= words(\@data_one); $table_two .= words(\@data_two); $table_three .= words(\@data_three); $table_four .= words(\@data_four);
while ($count < $elements) { print ("we are in MAIN loop\n"); while ($tr++ < $cols) { $test .= "<tr>";print ("we are in TR loop\n"); my $tc=0; while ($tc++ < $rows) { $test .="<td width='25%'align='left'>".(@{$ref}[$count]).'</td>'."\n"; print ("we are in tc loop\n");$count++ } # MAIN loop } $test .= "</tr>"; # tr loop } # td loop $test .= "</tr>"; } else {#do something else}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: problem with endless loop
by tilly (Archbishop) on Jul 14, 2003 at 19:30 UTC | |
|
Re: problem with endless loop
by swkronenfeld (Hermit) on Jul 14, 2003 at 19:31 UTC |