in reply to Dynamic Method Calls

So my question is the following: Is there some way I can get method behavior (looking though the namespaces in the @ISA package) when I don't know the name of the method until runtime? Or do I have to look through the @ISA array myself?

That's what AUTOLOAD is for. Check out perldoc perltoot.

Replies are listed 'Best First'.
Re: Re: Dynamic Method Calls
by ton (Friar) on Aug 28, 2001 at 01:32 UTC
    err... yes. The reason I have the method as a string in the first place is that I am implementing an AUTOLOAD. I needed to know how to turn that string into a method call on an object; fortunately, dragonchild came through with one line of code. Props to him or her!
    -----
    Be bloody, bold, and resolute; laugh to scorn
    The power of man...