santeri has asked for the wisdom of the Perl Monks concerning the following question:
It's not recursion, sub will be started after the current has returned.#!/usr/bin/perl use strict; use Tkx; # forward declarations sub func_a; sub func_b; # functions (loops) sub func_a { # STUFF.. Tkx::after(100, [\&func_a]); } sub func_b { # STUFF.. Tkx::after(100, [\&func_b]); } # timed start Tkx::after(100, [\&func_a]); Tkx::after(100, [\&func_b]); Tkx::MainLoop(); 1; __END__
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Tkx::after memory leaks
by Anonymous Monk on Mar 07, 2010 at 11:49 UTC | |
by santeri (Initiate) on Mar 07, 2010 at 12:02 UTC | |
by Anonymous Monk on Mar 07, 2010 at 12:06 UTC | |
by santeri (Initiate) on Mar 07, 2010 at 12:19 UTC | |
by Anonymous Monk on Mar 07, 2010 at 12:26 UTC |