Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
    You mean the one from perlfaq5?

Well, yes; I don't know of any others.

    do you honestly feel that your solutions are any better if your target audience is a perl beginner?

[blink] Perhaps I'm being a tad sensitive, but I feel like you're taking an aggressive tone here and in the rest of your reply. Did I flick you on the raw somewhere? If so, I apologize; my post here was not meant as an insult to anyone.

To answer your question: my solution was not intended as a replacement for the code in the FAQ - I'd already said that the example was intended to demonstrate a point (one which my code does not demonstrate.) It is not intended for beginners; my point was that I would never use the regex in the example since it is an obfuscated, baroque, and unnecessarily tortuous approach to solving a simple problem, and that there are more readable, reasonable ways to do it. My only reason for mentioning beginners at all was to note that the code in the FAQ is not suitable for them; I did not say or imply that mine is. As for the rest of your reply... please feel free to explain to me why all of these things are not done in that FAQ, and why I should do them. If your demands are reasonable, then the FAQ should have followed them, no?

I assure you, by the way, that if I was writing for beginners, I would do so quite well - perhaps better than anyone who chooses to criticize me on that topic. I'm a teacher, and have been for most of career; that is, I specialize in explaining things to beginners. Which is explicitly not what I was doing here.

The bit of code that I posted here simply explored an approach, with a possible variation, that I thought was reasonable for the problem. Again, if was not intended to be an insult or an attack on anyone, and I'm sorry that you appear to be taking it that way.

"Language shapes the way we think, and determines what we can think about."
-- B. L. Whorf

In reply to Re^2: Commifying sensibly by oko1
in thread Commifying sensibly by oko1

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 all is quiet...

    How do I use this? | Other CB clients
    Other Users?
    Others romping around the Monastery: (2)
    As of 2017-11-25 02:13 GMT
    Find Nodes?
      Voting Booth?
      In order to be able to say "I know Perl", you must have:

      Results (355 votes). Check out past polls.