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!
In reply to Re: Re: Re: Getting a list of aliases to selected items from a list of array references
by NetWallah
By guaranteeing freedom of expression, the First Amendment also guarntees offense.
in thread Getting a list of aliases to selected items from a list of array references
by tye
For:
Use:
& & < < > > [ [ ] ]