HTML5 Canvas
Written by: Simon Sarris
Featured Refcardz: Top Refcardz:
  1. Apache Hadoop
  2. Web Driver
  3. MVVM
  4. REST
  5. ADO.NET
  1. HTML5
  2. Ajax
  3. jQuery Selectors
  4. CSS Part 1
  5. Git

Link Details

Link 18830 thumbnail
User 194680 avatar

By bonlebon
via codeproject.com
Published: Apr 15 2007 / 10:56

Most people are not aware of the fact that Perl has support for object-oriented programming. If you've used another object-oriented programming language such as Java or C++ or been exposed to object-orientation, then object oriented programming in Perl is nothing like that. To do real useful object-oriented programming in Perl, you only need to use three simple rules as put forth by Larry Wall in Object Oriented Perl.
  • 13
  • 1
  • 2259
  • 0

Comments

Add your comment
User 201282 avatar

jmcantrell replied ago:

2 votes Vote down Vote up Reply

Man, POOP is right. I've written ton of perl scripts that make my life much easier, but the syntax makes me shudder. This article is a good example of this.

User 210010 avatar

Hercynium replied ago:

0 votes Vote down Vote up Reply

I agree, though I just want to point out that while Perl doesn't support the concept of public/private/protected, and you'll often have to jump through syntactical hoops to do more advanced coding, it's about as feature-complete from an OO standpoint as one could want. (The functional-like stuff is nice as well)

User 210010 avatar

Hercynium replied ago:

0 votes Vote down Vote up Reply

Oh, yeah, one other thing - once you really 'grok' the syntax, and understand what's going on under the hood, Perl has some really nifty ways to cut down on boiler-plate code and accessors and such, owing to some of the afore-said functional nature.

That being said, if you want pretty code, go with Ruby (I guess, since that's what I hear about R. However, I'm professionally neck-deep in POOP).

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (13)



Voters Against This Link (1)