in reply to how can I store a reference to a method/function along with the parameters?

try

my $meth_with_param= sub { myMethod('My Param'); };


s$$([},&%#}/&/]+}%&{})*;#$&&s&&$^X.($'^"%]=\&(|?*{%
+.+=%;.#_}\&"^"-+%*).}%:##%}={~=~:.")&e&&s""`$''`"e

Replies are listed 'Best First'.
Re^2: how can I store a reference to a method/function along with the parameters?
by JavaFan (Canon) on Aug 11, 2011 at 21:11 UTC
    Or even:
    my $meth_with_param = sub {myMethod('My Param', @_)};
    so you can call $meth_with_param->(1, 2, 3); which then will call myMethod('My Param', 1, 2, 3)
Re^2: how can I store a reference to a method/function along with the parameters?
by noelgolding (Initiate) on Aug 12, 2011 at 13:03 UTC
    Thanks, this is exactly what I was looking for. I don't know how to mark this question as answered, and to mark your reply as the solution. But I really appreciate the help.