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);
In reply to Re^3: Dynamically constructed function calls
by ysth
in thread Dynamically constructed function calls
by WalruZ
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |