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.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read (0=?node_id=237057 ;; 1=Where should I post X? ;; 2=) if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the (0=?node_id=29281 ;; 1=Perl Monks Approved HTML tags ;; 2=):
- (0=?node_id=341118 ;; 1=How do I compose an effective node title? ;; 2=)
- (0=?node_id=174051 ;; 1=How do I post a question effectively? ;; 2=)
- (0=?node_id=674668 ;; 1=Markup in the Monastery ;; 2=)
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
Link using PerlMonks shortcuts! (0=?node_id=43037 ;; 1=What shortcuts can I use for linking to other information? ;; 2=)
See (0=?node_id=17558 ;; 1=Writeup Formatting Tips ;; 2=) and other pages linked from there for more info.
| & || & |
| < || < |
| > || > |
| [ || [ |
| ] || ] ||