in reply to Passing references to subroutines with parameters

You want curried functions, which aren't provided for you in perl. Here's a close approximation using an anonymous sub:
sub_to_receive('123', sub{ sub_to_be_passed('xyz',@_) });

Replies are listed 'Best First'.
Re: Re: Passing references to subroutines with parameters
by John M. Dlugosz (Monsignor) on Jul 12, 2001 at 23:07 UTC
    I understand that curried functions have been accepted for inclusion in Perl 6, though. (see RFC 23)
      Yeah. I can hardly wait for the next Apocalypse.