While I agree with this in principle, sometimes the Primary Document isn't that helpful.
I'm not a big map() function user. Never saw (nor looked for) a good way to put it to use. The docs in the O'reilly books *do* explain how it works, but not really why you'd use it. I was modifying the monkchat.pl script and in there found an excellent implementation of map(). Suddenly, useful ways that I might use it became a lot more obvious.
While this wasn't the result of a question in monastery, similiar 'hand holding' takes place. I agree that there are some questions where the asker obviously didn't try
any available resources, be that the Q&A, AltaVista, Google, perl.com, perl.org, or whatever. But there are questions that are asked that aren't well addressed by the books or the PODs. When I see questions like that, I like to post a quick code example of how one might do it. Often, and in the case of a recent post, someone came back with better code. I learned something, and hopefully the original poster learned something. Would they or I have learned the same this by simply being referred to the Primary Document? Questionable.
I will add that I am strongly in favor of providing the link to the Primary Document, along with the explanation. But not simply instead of it.
--Chris
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.