in reply to Re: Dynamic Subroutines?
in thread Dynamic Subroutines?

Ahhh, yes... I would really suggest the Advanced Perl Programming book from O'Reilly. It cover similar things...

You actually do not need a closure, you should simply be able to do the following:

*ResultView_ItemClick = sub { $Display->results->Text(${$List{$_[0]}}{ +message}); }; ResultView_ItemClick(2);
That should do what you want.. if I understand correctly.
- Ant