in reply to New Year's Resolution: learn another language

As others have mentioned, functional programming is indeed interesting and worth looking into. That having been said, you don't really have to learn another language to do it. You can write Perl in a functional style. If you want to understand closures, you might as well do it in Perl, a language you already know, as learn a whole other language with its own version of print, etc.

You might look at Prolog for a programming style you really don't see in Perl (at least not until another monk comes along and points us to a CPAN module that lets you write code that way).

  • Comment on Re: New Year's Resolution: learn another language

Replies are listed 'Best First'.
Re^2: New Year's Resolution: learn another language
by pc88mxer (Vicar) on Jan 07, 2008 at 07:32 UTC
    I would also recommend Prolog. Logic programming takes a very different approach to programming problems, and it's helpful to understand how you solve problems in that kind of a framework even if you don't wind up using it for your day job. Problems which are easy to solve using Prolog are generally difficult (or cumbersome at best) to solve using imperative languages.

    And you can start with AI::Prolog, an Prolog interpreter written in Perl. As for books about Prolog, I'd recommend the classic "Art of Prolog".