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
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".# 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!
By guaranteeing freedom of expression, the First Amendment also guarntees offense.