in reply to Re^4: concat method inside method call
in thread concat method inside method call
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 ${...}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
| A reply falls below the community's threshold of quality. You may see it by logging in. |