in reply to How to access an object method when method name is stored in scalar variable
my $return_value = $obj->$method;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to access an object method when method name is stored in scalar variable
by tj_thompson (Monk) on Mar 15, 2011 at 21:22 UTC | |
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 |