I'm trying to get it to loop over everything (and do EVERYTHING) until $cnt == #. $dynamic is a variable that WILL change every time it runs through the loop so what I'm trying to do is get it to print out before the next loop starts so it doesn't overwrite itself. That way if I print "this is loop # $cnt;" all the data for that one loop iteration will be under it so I can later tell which data came from which loop.my $cnt = 0; do { $cnt++ print "We are on loop # $cnt"; print "$dynamic"; } until ($cnt == "10")
Any suggestions?
In reply to Which loop should I use? by coldfingertips
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |