Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Answer: Why is it said that Perl does not implement true object orientation?

( #8281=categorized answer: print w/ replies, xml ) Need Help??

Q&A > object-oriented programming > Why is it said that Perl does not implement true object orientation? contributed by chromatic

The purist who says this is quite correct -- it is possible to write workable Perl programs that use no object oriented features at all.

The pedant who says this is mostly correct -- Perl was not originally designed as an object oriented language.

The pooh-pooher who says this is uninformed -- Perl's object oriented features are powerful, elegant, simple, and incredibly Perlish.

When it comes down to brass tacks, not everything is an object in Perl. There are native types (scalars, arrays, and strings), functions can exist independent of classes, and very little from any programming discipline is rigidly enforced (or enforced at all). If you're into that sort of thing, Smalltalk is a real object oriented language and most other languages aren't.

(Those of us who actually do real work with OOPerl now and then will continue doing real work, no matter what they say.)

Comment on Answer: Why is it said that Perl does not implement true object orientation?
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2014-10-02 06:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (49 votes), past polls