On 11/18/07, Panda-X <[EMAIL PROTECTED]> wrote: > But what I want is to insert() each number per second.
> sub RollText{ > for ( 1..5 ) { > $_[0] ->{mw}{box} -> insert ( 'end', $_ ) ; > sleep 1; > } > } You probably don't want sleep() there; the after() method is generally the way to ask Tk to make something happen after some time interval has passed. The interface is different than simply sleeping, but more powerful; check the Tk docs for the full story. Hope this helps! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/