2 ms·
Perl OO is underrated. The bless() function and Perl's packages are straightforward and make OO seem less magic. You even get to pick the encapsulation. Most
by tyingq 9y ago
Perl OO is underrated. The bless() function and Perl's packages are straightforward and make OO seem less magic.
You even get to pick the encapsulation. Most people go with hashtable based objects, but you can use lists or even strings instead. It's a really good language to see how OO works under the covers.
https://perldoc.perl.org/perlootut.html https://perldoc.perl.org/perlootut.html
https://perldoc.perl.org/perlobj.html https://perldoc.perl.org/perlobj.html
- FractalLP 9y agoAgreed. I found it a bit of a pain though to write using it as most languages have so much syntactic sugar for OO.