holli has asked for the wisdom of the Perl Monks concerning the following question:
The ouput of this in my system (Win32, Perl 5.8) is "123454" and not "123454321" as I expect. Also the program seems to be still busy, because there is an hourglass cursor.use Tk; my $mw = MainWindow->new(); my $level = 0; my $id = $mw->after (1, \&_after); sub _after { if ( $level < 5 ) { $level++; my $id = $mw->after (1, \&_after); } else { $level--; } print "$level"; } MainLoop; 1;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl/Tk: recursive "after" method issue
by Errto (Vicar) on Feb 02, 2006 at 21:38 UTC | |
|
Re: Perl/Tk: recursive "after" method issue
by zentara (Cardinal) on Feb 02, 2006 at 21:41 UTC |