in reply to Re^2: Advice on transforming a sub into a re-entrant recursive-able method.
in thread Advice on transforming a sub into a re-entrant recursive-able method.
I haven't really looked at the semantic aspects of your rewrite yet, because I'm not exactly sure which advice from Higher Order Perl you're trying to follow, in particular which coderefs you want to pass to where...
As it is, it's not clear to me how the three functions are related. Is snmp_get the toplevel function? If so, how is it supposed to call the other routines (via coderefs you pass in as args?), etc. Could you elaborate a bit on how you want the new version to operate, i.e. what you want to call with which args, and what it should return (a few lines of sample code showing how you're planning to use it would help).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Advice on transforming a sub into a re-entrant recursive-able method.
by hechz (Novice) on Jul 21, 2008 at 18:33 UTC | |
by jdporter (Paladin) on Jul 21, 2008 at 19:10 UTC | |
by hechz (Novice) on Jul 21, 2008 at 19:57 UTC | |
by jdporter (Paladin) on Jul 21, 2008 at 20:16 UTC | |
by hechz (Novice) on Jul 21, 2008 at 20:30 UTC |