Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Comment on

( #3333=superdoc: print w/replies, xml ) Need Help??

I've been avoiding naming it because I'm really interested more in high level thoughts about process, procedure, and best practices around recreating an existing CPAN module with an OO interface, as opposed to the details of the module itself.

I'd really like to hear more thoughts and recommendations on how to handle this in the general sense. Is it best to combine the procedural and OO interface into a single package? Or have them in separate packages? Why is one better? Or is there no real consensus on this, and no real advantage or disadvantage to either method?

However, for the sake of completeness, the module is Net::Statsd. It uses a pair of package variables to set the destination host/port, and I have a need to for multiple separate destinations.


In reply to Re^4: Best Practices for creating an OO version of an existing CPAN module? by topher
in thread Best Practices for creating an OO version of an existing CPAN module? by topher

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, 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
  • 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.
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    belg4mit kicks Perl in the shins, "Unmatched ) in regex; marked by" my ass
    [belg4mit]: Nothing wrong with perl -le 'print ":)" =~ /(?^u:^(\:|\:\))$) /'
    [Lotus1]: belg4mit are you on a Linix server?
    [belg4mit]: yes. the regular expression is generated in code from a text file. that s the regular expression that Perl blows up when it reaches it, but if I use it from the comman line it's fine
    [belg4mit]: oh, wait, damn, different lne number
    [choroba]: same Perl version?
    [choroba]: oh, ok
    [belg4mit]: I had \Q'd in one RE but not a subsequent one, doh

    How do I use this? | Other CB clients
    Other Users?
    Others pondering the Monastery: (8)
    As of 2017-04-25 16:42 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?
      I'm a fool:











      Results (460 votes). Check out past polls.