in reply to Re: how can I store a reference to a method/function along with the parameters?
in thread how can I store a reference to a method/function along with the parameters?
so you can call $meth_with_param->(1, 2, 3); which then will call myMethod('My Param', 1, 2, 3)my $meth_with_param = sub {myMethod('My Param', @_)};
|
|---|