Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
I am a little late to the party here, and as a fairly new perl programmer myself, there have been a lot of times where after reading the documentation for a given perl module I have had to do pretty exhaustive searches to find anything that gave me even a beginning of a clue as to how to do something.

Oftentimes this is because the docs are written for people that are more familiar with perl than I am, or there is a very simple example and it can do "all these other things" but they seem to have no good docs. Why that is, I dunno, it could be that I just don't know what I am looking for, or where to look.

My reason for replying is that there are many things that I am learning on my own, but I often see that I have written some chunk of code and after looking at it I think "Damn, there must be a far better way to do that. I don't particularly want someone to write the code for me, but I wonder sometimes if it would be better if someone that was far better with perl than I took the time to provide the code and then subsequently explain it.

I have found some code snippets on the web that do what I need, and they are very short which is nice other than, while I understand that it works for what I am using it for, I would rather see the 10 lines of code that were smashed down into that fancy one-liner I am now using and I would like to see them explained and a what,why,where,when,how given about why the one-liner works and how it all relates, so some theory I guess.

Just my $.02, but I think examples by experienced folks come in handy. On top of that, the more examples I see or are available, the less questions I generally need to ask :)

Right now I am questioning what I wrote because I am pretty sure that was long-winded and didn't actually cover what I wanted to, but my brain hurts, so I am not bothering to edit it or anything. Deal :)

In reply to Re^3: Reading too much into it? by raisputin
in thread Reading too much into it? by grep

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 about the Monastery: (7)
    As of 2019-11-11 20:44 GMT
    Find Nodes?
      Voting Booth?
      Strict and warnings: which comes first?

      Results (63 votes). Check out past polls.