in reply to Re^2: passing subroutine references
in thread passing subroutine references
Your solution to getting rid of complexity is to get rid of a local and add goto &_hanoi;?
Even a beginner needs to know local, whereas they wouldn't know goto &_hanoi;, and it adds debugging complexities at next to no benefit.
And at what cost? You've added a global var, you've made the private recursive function public, and you've nested the main function (which seems innocent, but I've found it to cause is to confuse me time and time again).
I beg to differ. I think you've taken 4 steps back.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: passing subroutine references
by Jenda (Abbot) on Sep 19, 2009 at 15:43 UTC | |
by ikegami (Patriarch) on Sep 20, 2009 at 17:12 UTC | |
by Jenda (Abbot) on Sep 20, 2009 at 21:51 UTC | |
by ikegami (Patriarch) on Sep 21, 2009 at 03:02 UTC | |
by ikegami (Patriarch) on Sep 21, 2009 at 03:00 UTC |