perlmeditation
batkins
I saw a thread recently about inside-out objects, and started thinking about the different ways to do OOP in Perl. At the moment, I generally just bless a hash and access its members (e.g. $self->{member}). As Abigail-II pointed out, though, this can make misspellings into tricky runtime errors. Also, the syntax seems kind of ugly to me.
<p>
So I was wondering what OO methodology the Perl Monks use. Some of the ones I'm familiar with are:
<ul>
<li>Straight hash-blessing
<li>Inside-out objects
<li>Class::Maker
<li>use fields;
</ul>
What kind of OO programming do you use and why?
<div class="pmsig"><div class="pmsig-185222">
<hr>
<font size="1">
<i>I always thought it would be more realistic if the Matrix were attaching the humans to long poles and using them to beat their cake batter. Then Morpheus could say "to turn a human being into THIS" and hold up a big birthday cake.
</i><b>
- slashdot
</b></font>
</div></div>
<p><small>Edit by [tye], ephasize "you" in title, close B and I tags</small></p>