in reply to Advice on transforming a sub into a re-entrant recursive-able method.

hechz,
I am not sure what you are trying to do. In your current version, you overwrite every argument you pass in except the session so it seems like there isn't much point in them. I can't see what it is that you are trying to make re-entrant nor what you are trying to recurse on.

Are you trying to create a function that can return the snmp data piece meal? If so, I think this article I wrote on creating and using iterators may help you. If you can give a better description of what you are trying to accomplish rather than how you are trying to accomplish it I might be able to help more.

Cheers - L~R

  • Comment on Re: Advice on transforming a sub into a re-entrant recursive-able method.