It only goes into the array once, it gets printed multiple times. Erase this
and put this at the end of the file.foreach (@output) { print "Round $i\n " ; print "$_\n" ; $i++ ; sleep(1) ; }
foreach (@output) { print "$_\n" ; }
In reply to Re^3: Why does this code continue to loop?
by huck
in thread Why does this code continue to loop?
by rachard11
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |