I'm trying to print the results from an array
Lets use this as an example
@p_categories = (info1,info2,info3,info4,info5)
foreach $p_category (@p_categories){
print "<tr><td> $p_category </td></tr>";
}
Now it's easy to have rows <tr> to simply run to infinity, but how would you write, to put the first say 3 results on the first <tr> and once the results hit above 3 for that line to start a new <tr> bracket....if you catch my drift.
Lets use this as an example
@p_categories = (info1,info2,info3,info4,info5)
foreach $p_category (@p_categories){
print "<tr><td> $p_category </td></tr>";
}
Now it's easy to have rows <tr> to simply run to infinity, but how would you write, to put the first say 3 results on the first <tr> and once the results hit above 3 for that line to start a new <tr> bracket....if you catch my drift.