So I was thinking the other day, being a newbie I do a lot more SOPWing than anything else around the monastary (yes, I do do the tutorials!). Sometimes I ask a question and get one answer that shines above the rest, or solves the problem, or clears up what everyone else was
trying to say (by speaking adequate newbie!). Look at this
ficticious example:
Petras has asked his fellow monks for Perl wisdom:
I have a file and want to know how many times the letter 'd' appears in it. What should I do?
Vroom writes: I would make a visual basic program that counts it for me!
Merlyn writes: You could dump the whole file into a Java String object, use substring() to move all the instances of 'd' into a new String, then check the length.
chromatic writes: I do all my files in ISO 9002 Chinese characters, so don't worry about those silly 'd' characters!
castorbaway writes: Use a regex, but becareful to excape the letter 'd' in it, since it is used to count digits in a string.
While all of these suggestions are somewhat wise, I'd like to be able to do something like:
Reply All: Thanks for the input. The answer that helped me the most was ________
I could do this by sending out several replies, but that's not nice to the server, and really it's rather redundant.
What does anyone else think?
Cheers!
Petras
Don't worry about people stealing your ideas. If your ideas are any good, you'll have to ram them down people's throats.
-Howard Aiken
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.