in reply to Passing references to subroutines with parameters
Effectively, you're creating a new (anonymous) subroutine that calls sub_to_be_passed with the first argument already filled in and the others coming from what is passed to the anonymous subroutine when it is called.sub_to_receive('123', sub {sub_to_be_passed('xyz',@_)});
|
|---|