in reply to Re^2: Inline::* and string eval -- Have I found a place where it might actually be necessary?
in thread Inline::* and string eval -- Have I found a place where it might actually be necessary?

It can also be done via %::
\&{ $::{'Lua::'}{$module.'::'}{$funcname} };

but no strict 'refs'; is a lot easier.

By the way, Module::Pluggable is now part of core. I'd use that over playing with the symtab if applicable.

  • Comment on Re^3: Inline::* and string eval -- Have I found a place where it might actually be necessary?
  • Select or Download Code

Replies are listed 'Best First'.
Re^4: Inline::* and string eval -- Have I found a place where it might actually be necessary?
by Luftkissenboot (Novice) on Dec 26, 2008 at 10:53 UTC

    Aha, the first code snippet explains the syntax errors I was getting, thanks.

    I don't think Module::Pluggable will be applicable here, because of the way Inline works, but it's useful to know it's in core now, as I think I can find a use for it elsewhere :-)