in reply to Dynamically generating function callbacks

Generating functions at runtime is pretty simple in Perl. And your desire to avoid repetitive source code by doing so is worthy and desirable.

But I cannot make sense of your example -- which I suspect you've typed into the browser manually given the typo in calback_reply rather than cutting and pasting from actual code.

Basically what I'm saying is: Yes, what you want to do is both possible and a good idea, but if you want some help on how to do it, then you're going to have to post some real examples of the subs you want to generate -- even if you feel the need to change the function and parameter names a little to "protect the innocent" -- so we can get a feel for the pattern involved.


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.