in reply to Really Writing Object Oriented Perl

The problem is thinking in OO.

Currently I have the problem the other way round, I can think in OO, but I'm having difficulties lerning haskell...

I'd recommend to read a good book on OO, not necessary a Perl book - I liked "Object Oriented Software Construction" by Bertrand Meyer.

Once you start thinking in OO-Terms, you'll ask yourself how to do that in perl, and eventually you'll end up using Moose or something ;-)

  • Comment on Re: Really Writing Object Oriented Perl

Replies are listed 'Best First'.
Re^2: Really Writing Object Oriented Perl
by perlfan (Parson) on Jun 01, 2007 at 20:43 UTC
    I actually find OO in Perl much easier. I don't do a whole lot of OO programming, but when it is useful I would not have it any other way - mainly because I am not restricted in virtually any way.

    As it has been said, Perl OO programming (as does any) requires a lot of practice and refining. Regarding books, Conway's book on OO Perl is not only the best book I've seen on the subject, but the coverage of Perl topics (closures, globs, etc) is by far the best I've seen in any book. It is worth getting even if you have no intention to ever writing OO Perl.