DEV Community

Better Perl: Using map and grep

Mark Gardner on March 16, 2021

As a Perl developer, you’re probably aware of the language’s strengths as a text-processing language and how many computing tasks can be broken dow...
Collapse
 
matthewpersico profile image
Matthew O. Persico

Glad to see that you did NOT throw a Schwarzian transform example in there. That usually makes people’s eyes glaze over. Maybe in a part 2 article?

Collapse
 
mjgardner profile image
Mark Gardner

Maybe, though the focus of such an article would be on sorting. Would also cover Joseph N. Hall's Orcish maneuver.

Collapse
 
matthewpersico profile image
Matthew O. Persico

Gee, I have to look that up - I forgot what that was. Meanwhile I own an original copy of the book he first described it in. 🤦‍♂️

Collapse
 
yukikimoto profile image
Yuki Kimoto

I often use map and grep instead of for loop when I want to write one line easily