24
Jun/092
Jun/092
use Moose;
If you’re used to regular OO perl you’ll recognize this:
With Moose this becomes drastically simpler and more powerful:
You may hear that Moose is slow. Don’t let that throw you off, it only adds a fraction of a second to startup time, and is exceptionally fast during run-time. There are much more important things to be concerned about. Moose will make your code cleaner, easier to change and extend, and makes coding perl oo quite enjoyable.
Comments (2)
Trackbacks (0) ( subscribe to comments on this post )
Leave a comment
No trackbacks yet.

6:31 pm on June 26th, 2009
You got it half right. Never access the hash reference directly with Moose (it’s bad without Moose too, but even more wrong with).
Instead, call $self->name.
8:02 am on June 27th, 2009
Ah, right, artifact of copy/paste and not editing my own post close enough. :) Thanks. Post updated.