There is really no problem with what you are doing. Instead of taking it a big question as whether that's OO, or what OO it is, better just take a look at the goals you wanted to succeed.

You might want it to be OO, or you might just want the problem being resolved in a reasonable way. I am not saying that you cannot kill both birds by one stone, but no one is lucky everyday.

If you really care to make your program OO, then this is not OO, thus it is not a valid question as what type of OO it is. Using bless does not warrant OO.

But that does not change the fact that your code is quite elegant, and the trick is nice. You had the thing done, no regret.


In reply to Re: What kind of OO is this? by pg
in thread What kind of OO is this? by YuckFoo

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.