1) It's perfectly fine to build upon the work of others. OOP was developed with the idea of making it easy to reuse software.

2) Becoming comfortable with pack and unpack is always a good idea, but using a CPAN module is fine too, if it solves your problem.

3) Mastering the full potential of OOP could take a lifetime. In fact, I doubt anyone knows what its full potential really is. I would suggest incrementally improving your OOP skills whenever you can. Look at other people's code, and see how they solve problems using OOP. OOP techniques are especially helpful in managing the complexities that occur in large programs. Also look at modules that get used a lot like the standard modules which come with perl. Their interfaces have been carefully crafted to make them useful in a general purpose setting. As you see more examples of well-written OOP code, you should get a feel for when certain methods are better than others. The OOP system in perl is very flexible, so it's difficult to lay down hard and fast rules about when to do things one way or another.

My main question, though, is: does your code work the way you want it to?


In reply to Re^3: Dhcpclient module by pc88mxer
in thread Dhcpclient module by drip

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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 Where should I post X? 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 Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, 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, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.