in reply to Dynamic function dispatching...

Although the docs are a bit thick, could you simply use Aspect to do your bidding?

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

Replies are listed 'Best First'.
Re^2: Dynamic function dispatching...
by zonk (Acolyte) on May 04, 2005 at 17:02 UTC
    Hi Randal,

    Thanks for the quick reply!

    The short answer is that it might. :)

    After glancing at the perldocs for Aspect the only couple of questions I'll need to answer are:

    1. Can I advise functions that don't exist?
    2. Can I write "around" advice that can call another function than the one it appears that I want to call? (e.g. Can advice to Logger::Foo::bar() eventually call Foo::bar() with modified args and never actually try to dispatch to Logger::Foo::bar()?)

    I'll start digging into Aspect now to find these answers. Maybe this will be a winner. :)

    Thanks again!
    zonk