in reply to displaying program status in perl tk
sub count { print "$upper_no\n"; my $timer; # declare first so you # can cancel it in it's own callback $timer = $mw->repeat(1000,sub{ $no++; if ($no >= $upper_no){ $timer->cancel } }); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: displaying program status in perl tk
by jagdish.eashwar (Novice) on Feb 05, 2009 at 07:51 UTC | |
by zentara (Cardinal) on Feb 05, 2009 at 14:01 UTC |