disadvantages
- Perl's object model is a little different than you're likely to encounter in other languages. you'll face a bit of a learning curve when trying to apply what you've learned from perl to another language like java.
- since it wasn't designed as an OOP language from the ground up, some things are a little odd. eg, objects are kind of (but not entirely) like modules and methods are kind of (but not entirely) like regular functions.
advantages
- perl's object model is extremely transparent, flexable, and easy to play with. if you want to really poke at things and see how OOP is done, perl will let you right into the guts.
- Damian Conway's Object Oriented Perl is one of the best books on OOP out there in any language.
and, fwiw, i wouldn't bother with Java even if you decide you want to learn OOP in another more OOP-focused language. instead, i'd look at smalltalk, ruby, or python instead.
anders pearson
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|