in reply to Managing object persistance in a container class

Are you asking about using a scalar containing a method name?

Method dispatch cannot be checked at compile time, as you can manipulate @ISA or use AUTOLOAD or eval or all sorts of other nice trickery. I wouldn't make a habit of such a thing if there were other ways to do it, but it looks okay in this case.

You might want an eval block in there to catch any errors, though.

  • Comment on Re: Managing object persistance in a container class