in reply to Re^5: Local for lexicals
in thread Local for lexicals

What are you trying to achieve that this doesn't?
my( $x, $y, $z ) = ( 1,2,3 ); my $lamb = do{ my( $x, $y, $z ) = ( $x, $y, $z ); lambda ( $x, $y, $z ) => sub { $x + $y } }
Unfortunately, I don't know quite what this does, so I can't answer! My question (at least, the part of my question that seems to have attracted the most attention) is how to write lambda in such a way that lambda( $x, $y, $z ) => sub { $x + $y } is the same as sub { $_[0] + $_[1] }. As far as I can tell, the code that you've written would be the same as
my ( $x, $y, $z ) = ( 1, 2, 3 ); lambda ( 1, 2, 3 ) => sub { 1 + 2 }