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: <%-{-{-{-<
In reply to Re^2: [OT]: what difference between eval and do ?
by AnomalousMonk
in thread what difference between eval and do ?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |