"Another guy stated that Python/Ruby are truly Object Oriented languages and it makes more sense to learn them."

This begs the question of whether a language has to be object-oriented to be worthwhile. Haskell (for example) is a very elegant programming language, but doesn't do OO at all.

And although Perl's built-in OO requires a little manual work, it's extremely flexible, supporting OO concepts like multiple inheritance that many other OO languages do not (including Ruby, Java and PHP).

It's flexible enough to build things like Moose on top of - and I'd argue that Moose offers a more powerful OOP framework than almost any other programming language. (Scala is probably the most mainstream programming language that offers OOP that rivals the Moose.)

"The question that's stuck in my mind though, is, why are people moving "away" from Perl?"

Don't believe the hype. Sure plenty of people are moving away from Perl, but many more than that seem to be moving towards it. Measuring such things as these directly is difficult, but there are proxy measurements.

use Moops; class Cow :rw { has name => (default => 'Ermintrude') }; say Cow->new->name

In reply to Re: Migrating from Perl to other language? Why would someone do that? by tobyink
in thread Migrating from Perl to other language? Why would someone do that? by pmu

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.