in reply to Re: Problem calling a function with name stored into scalar
in thread Problem calling a function with name stored into scalar

Sure...but notice that right above it I'm able to use that function name:
print STDERR "(Module::Configurable::is_int) TRUE!\n" if Module::Configurable::is_int(42, 1);
Output:
(Module::Configurable::is_int) TRUE!

Replies are listed 'Best First'.
Re^3: Problem calling a function with name stored into scalar
by ikegami (Patriarch) on Jun 10, 2011 at 23:06 UTC
    Yeah, see my update. &Module::Configurable::is_int existed at compile-time, but not at run-time.
      Oh, good call on the namespace cleaning! Module::Configurable is a Moose role that is being consumed by the class I'm using for test. I'm using namespace::autoclean in both modules though. I'm now betting I shouldn't be using that in the Module::Configurable role. I'll check it out.
      You nailed it ike. After removing the namespace::autoclean use statement in the role, the test code now works as expected. Many thanks for the help late on a Friday and have a great weekend :)