Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re: kind of effort required for learning OO perl ?!

by hardburn (Abbot)
on Jul 29, 2010 at 14:52 UTC ( #851955=note: print w/ replies, xml ) Need Help??

in reply to kind of effort required for learning OO perl ?!

If you know about packages and references, then taking the next step to OO Perl is easy. You use bless to put a little note on a reference, which will be the package for looking up methods. So whenever you do $obj->foo, it's looking up the foo() subroutine in the package you bless'd into.

For the basics, there isn't much more to it then that. The trick is not making it out to be more complicated than it is. OO Perl is just straightforward combinations of stuff you probably already know.

"There is no shame in being self-taught, only in not trying to learn in the first place." -- Atrus, Myst: The Book of D'ni.

Comment on Re: kind of effort required for learning OO perl ?!
Select or Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://851955]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (9)
As of 2015-10-13 13:00 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (307 votes), past polls