in reply to Re: Re: Getting a list of aliases to selected items from a list of array references
in thread Getting a list of aliases to selected items from a list of array references

Excellent! - Many thanks, ysth - that worked great!
# Replace @closures usage by this line in "sub map_With_Closure" &$sub( map {my $x=$_; +sub:lvalue{$x->[0]} }@_ ); # "+" required in front of sub, to avoid perl's mininterpration # of "sub" being a label, and attribute-- thanks ysth!
The only minor gripe with this code is that it requires the use of the temporary variable $x , since $_ is local to the lvalue sub, and does not inherit from the "map".

Offense, like beauty, is in the eye of the beholder, and a fantasy.
By guaranteeing freedom of expression, the First Amendment also guarntees offense.
  • Comment on Re: Re: Re: Getting a list of aliases to selected items from a list of array references
  • Download Code