I have been useing foreach alot lately (just begining perl) and i was woundering if theres something else besides foeach that i can use.
the way im using it is like this:
foreach (@data_read01){
@split_data01 = split (/\|/, $data_read01[$counter01]);
chomp @split_data01;
$hold_data .= "<tr><td></td><td> $split_data01[0] </td><td align=\"center\"> $split_data01[1] </td></tr>";
$counter01++;
}
but im having to reset $counter01 and use that $counter01++ all the time
any thoughts?
the way im using it is like this:
foreach (@data_read01){
@split_data01 = split (/\|/, $data_read01[$counter01]);
chomp @split_data01;
$hold_data .= "<tr><td></td><td> $split_data01[0] </td><td align=\"center\"> $split_data01[1] </td></tr>";
$counter01++;
}
but im having to reset $counter01 and use that $counter01++ all the time
any thoughts?