Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (15)
As of 2014-07-25 15:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (172 votes), past polls