Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

comment on

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

I've been using Perl in various forms since Perl 3.0. I've tired to keep up with the latest developments, insights, and coding styles. I've gone from the age of chop to chomp, from It's like shell script to use strict/warnings, and from procedural to object oriented Perl.

I've gotten manuals and books and studied them. Throughout it all, I think my Perl coding ability is pretty good. Scripts and modules I've written have been floating around the Internet from one user to another. I'm thankful that others have found my work to be useful.

The problem is that I'm off in my own little isolated world. Yes, I've learned a lot through documentation, seeing examples, and picking up ideas on my own, but would you use a heart surgeon whose sole training is what he read on Wikipedia? Almost every job I've held, I've been the local Perl expert. Not that my Perl knowledge is so vast and great, it's that most of the people I work with aren't that good.

One of the Perl modules I've written has become fairly popular, and I'd like to publish it as part of CPAN. And, I'd like to take this opportunity to really help improve my Perl knowledge and code. I've written the module, and it's all documented via POD. I've used the POD to create a whole bunch of testing using Test::More. As far as I can tell, it's already to upload. What I'd like is to find someone or place that could mentor me. Review my code, tell me where it falls short and how I could improve it.

There are all sorts of questions I have. For example, I know what I am doing should work with Perl as old as Perl 5.8.8, and I do a <use 5.008008;> to verify this. However, should I make sure my code works with earlier versions of Perl? Are there still a lot of people out on Perl 5.6? Should I say To heck with people using software a decade old and say use 5.010;. Or, should I be saying use v5.10;? Are vstrings still used?

This is my problem. I want to improve my coding. I want to be able to post my modules on CPAN, and not have people say "You want to see something sad and tragic? Look at this module!. I've downloaded Perl modules from CPAN and looked at the code, but many CPAN modules are fairly old, and their coding style is dated.

So where do I go to get mentoring on my coding and programming style? I'm not looking for tutoring. I'm willing to pick up manuals and do that on my own. I simply want a code review, or a few hints. This isn't so much as How do I do such and such?, but whether I'm doing it correctly.

In reply to In Need of Mentoring by qazwart

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?

    What's my password?
    Create A New User
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others exploiting the Monastery: (9)
    As of 2020-02-26 10:24 GMT
    Find Nodes?
      Voting Booth?
      What numbers are you going to focus on primarily in 2020?

      Results (113 votes). Check out past polls.