in reply to Re: what difference between eval and do ?
in thread what difference between eval and do ?
grep { s/\d+/a/ } @dd;
This is another instance of a mystery of which I've only recently become aware: The (mis(mis))use of grep in place of the (mis)use of map in place of a for-loop. See this discussion. Just for the satisfaction of my own curiosity, if you or anyone can offer any insight into the rationale behind this strange map/grep usage, I'd be mighty obliged.
Give a man a fish: <%-{-{-{-<
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: [OT]: what difference between eval and do ?
by dsheroh (Monsignor) on Apr 20, 2018 at 08:21 UTC | |
|
Re^3: [OT]: what difference between eval and do ?
by jimpudar (Pilgrim) on Apr 20, 2018 at 01:13 UTC | |
|
Re^3: [OT]: what difference between eval and do ?
by LanX (Saint) on Apr 20, 2018 at 01:25 UTC | |
by LanX (Saint) on Apr 20, 2018 at 01:35 UTC | |
by LanX (Saint) on Apr 20, 2018 at 01:35 UTC |