in reply to Re: How to access an object method when method name is stored in scalar variable
in thread How to access an object method when method name is stored in scalar variable
So, how about the case where you have a partial method name in the scalar instead such as wanting to access $obj->set_foo but $method only has 'foo' in it? I'm guessing you're stuck with the eval method this time?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How to access an object method when method name is stored in scalar variable
by Eliya (Vicar) on Mar 15, 2011 at 21:31 UTC | |
by AnomalousMonk (Archbishop) on Mar 16, 2011 at 01:02 UTC | |
by tj_thompson (Monk) on Mar 15, 2011 at 21:37 UTC |