http://www.perlmonks.org?node_id=442740


in reply to Perl 6, Object Orientation and Melting Brains

I've been trying to get my head around OO for 15 years and made no progress ... how do I learn OO without melting my brain?

I am not sure whether you are talking about creating object oriented code, or using object oriented APIs. What you mean can have a lot of implications on the answer.

If you mean the former, then no, you will not be forced to write all your code in an object oriented way. Even in languages that try to force this sort of thing on their users, you can usually write procedural code in an object-oriented wrapper. This does not require much more than learning some syntax, and proceeding to do things essentially the same way you always have.

If you're talking about using APIs that are more object-oriented, then perhaps. Perl 6 will make most everything look like an object (even if it's not truly an object, it will at least look like it). As BrentDax mentioned, there will be ways to access the functionality with alternate syntaxes, but learning the OO way might be advantageous.

Do not despair, though. If made reasonably -- which I think most Perl APIs tend to be -- learning how to use an object oriented interface is not very difficult. In fact, I find it difficult to believe you haven't already, after using Perl for very long. You just might not realize it.