Function composition in Perl

Viewed 1098

In Perl 5, we can apply functional programming techniques (using closures, higher order functions like map, grep, etc.). But how about function composition? Let's say, in Haskell it can be done very easily with (.) function:

map (negate . abs) [-3, 2, 4, -1, 5]

What would be the equivalent of such "dot function" in Perl?

4 Answers
Related