in reply to How to pass parameters to anonymous subs and sub references?

Something similar to what jdporter sort of mentioned when he was answering your question 2... A typical way to assign callback functions when you use Tk (or whatever ...) is:

my $b = $mw->Button(-command => sub {foo("abc", "123")});

Not much as passing parameters to anonymous sub, but rather you were forced to create anonymous sub.