in reply to Timing events in Tk

perldoc Tk::after

Replies are listed 'Best First'.
Re: Re: Timing events in Tk
by neilwatson (Priest) on Aug 09, 2003 at 12:54 UTC
    I'm slightly confused. Is it Tk::After or Tk::after? Also, I have tried using this code unsuccessfully:

    #timer for answer if ($count > 0){ $timer = $guessbox->repeat($limit, \&check); }

    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().

      Tedrek