in reply to Recursive anonymous subroutines
So I assume what you did is, to have a sub, which returns a sub routine, base on some sort of condition, either by using switch statement, or whole bunch of elsif.
Hm... This sub itself would be a giant, and I don't see this as a good style.
What you really should do, is to have all those subs well defined, give each of them a name THAT HELPS PEOPLE TO UNDERSTAND THEIR FUNCTONALITY. You can use ref to those subs to implement what you stated.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Recursive anonymous subroutines
by nohat (Initiate) on Oct 08, 2003 at 14:51 UTC |