in reply to Re^3: concat method inside method call
in thread concat method inside method call

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re^5: concat method inside method call
by almut (Canon) on Jan 25, 2010 at 14:51 UTC

    Yes, it doesn't look right (nor feel right — which is why I didn't suggest it in the first place :), but it works.

    $obj->${$t1.$t2}() ;

    You forgot to take a reference (\) to the string $t1.$t2, which is being dereferenced with ${...}

    A reply falls below the community's threshold of quality. You may see it by logging in.