in reply to Re^2: what is difference between calling the function in Perl/Tk in the following ways
in thread what is difference between calling the function in Perl/Tk in the following ways
Hmm, you're right, the other one would probably leak also if they both contain $button. (update: oops...looking at wrong thread since the OP didn't even have a circular reference in the example).my $fact; $fact = sub { my $n = shift; return $n if $n <= 1; return $n*fact($n-1); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: what is difference between calling the function in Perl/Tk in the following ways
by ikegami (Patriarch) on Apr 16, 2010 at 22:21 UTC |