mzvk has asked for the wisdom of the Perl Monks concerning the following question:
I've run it through deparse to see what's not seen by naked eye.my @intersection = grep { defined } @{ { map { lc ,=> $_ } @a } } { map { lc } @b };
$ perl -MO=Deparse -e 'my @intersection = grep { defined } @{ { map { lc ,=> $_ } @a } } { map { lc } @b }; ' my(@intersection) = grep({defined $_;} @{+{map({lc $_, $_;} @a)};}{map + {lc $_;} @b}); -e syntax OK
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Strange grep construct
by choroba (Cardinal) on Apr 12, 2019 at 12:16 UTC | |
by mzvk (Novice) on Apr 12, 2019 at 12:29 UTC | |
|
Re: Strange grep construct
by LanX (Saint) on Apr 12, 2019 at 12:29 UTC | |
|
Re: Strange grep construct
by tybalt89 (Monsignor) on Apr 12, 2019 at 12:18 UTC | |
|
Re: Strange grep construct
by mzvk (Novice) on Apr 12, 2019 at 12:39 UTC | |
by LanX (Saint) on Apr 12, 2019 at 17:07 UTC | |
by jwkrahn (Abbot) on Apr 12, 2019 at 18:21 UTC | |
by LanX (Saint) on Apr 12, 2019 at 22:38 UTC |