in reply to Timing events in Tk
#timer for answer if ($count > 0){ $timer = $guessbox->repeat($limit, \&check); } [download]
Neil Watson watson-wilson.ca
Well, which one works? :). As for that code, it won't work because $count will still be 0 at that point. You probably want to create the timer in question() and then cancel it in check().