Higher-Order Perl is about functional programming techniques in Perl. It's about how to write functions that can modify and manufacture other functions. That way your code is more flexible and more reusable. Instead of writing ten similar functions, you write a general pattern or framework that can generate the functions you want; then you generate just the functions you need according to the pattern. The program doesn't need to know in advance which functions are necessary; it can generate them as needed. Instead of writing the complete program yourself, you get the computer to write it for you.

The book is now available for free download in PDF format by virtue of special permission from the publisher.

Full story »
zlatko's picture
Created by zlatko 12 years 37 weeks ago – Made popular 12 years 37 weeks ago
Category: Beginner   Tags:
stargrave's picture


12 years 37 weeks 3 days 16 hours ago


Great hackerish book!

This book is great! Nearly a half-year ago I loved SICP (Structure And Interpretation of Computer Programs) course. It is fully based on Scheme (Lisp dialect) programming language. As I have never seen or used functional programming, I was incredibely impressed by it. I wanted to threw away anything except Scheme (or any other Lisp) and use only it. But before, I always used Perl for everything. And still nowadays it is my favorite language. The nirvana will come if Perl can be really functional :-). And this book greatly shows it's abilities in it! After reading part of it I discovered huge quantity of new things (such as powerfulness of grep and map operators) and now always use them.

Best karma users