skrapasor has asked for the wisdom of the Perl Monks concerning the following question:
I'm doing this so a user can enter a command and the object will call the method. I just want a reference to put in the hash, right? Here is the page I was on in case you are wondering: here BTW: The way I do it doesn't work, the arrow operator dereferences the method I think.my $action = { 'dosomething' => $object->something };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How do I create a reference to an object method?
by kyle (Abbot) on Jun 25, 2008 at 19:31 UTC | |
by ysth (Canon) on Jun 26, 2008 at 02:02 UTC | |
|
Re: How do I create a reference to an object method?
by pc88mxer (Vicar) on Jun 25, 2008 at 19:13 UTC | |
by Anonymous Monk on Jun 25, 2008 at 19:32 UTC |