in reply to Re^2: Dynamically constructed function calls
in thread Dynamically constructed function calls
Of course, you can do something pretty close by just having a do method:
sub foo { print "in foo" } sub do { my $self = shift; my $meth = shift; $self->$meth(@_) } $object->do("foo", @args);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Dynamically constructed function calls
by dragonchild (Archbishop) on Nov 04, 2004 at 04:03 UTC | |
by ikegami (Patriarch) on Nov 04, 2004 at 04:48 UTC | |
by ysth (Canon) on Nov 04, 2004 at 05:36 UTC | |
by ikegami (Patriarch) on Nov 04, 2004 at 15:56 UTC |