Tell me I'm wrong, downvote me if you like, but I was asking for an opinion on working code I already have, which, I should point out is remarkably similar to perldoc. Could this be because I've already read it, perhaps?

I reiterate: I was merely asking if there is a cleaner, or simpler, way to do it. I should probably point out that I'm not necessarily after a regexp solution.

I don't see how, or why, this is an issue, and spawns negative (in comment value, not in rep, I haven't voted on either and wouldn't know) posts like the two above.

RTFM isn't always an answer. See the FAQ isn't always an answer. Posting perldoc is definitely not a solution, IMO.

I quote myself from the original node:

.. while it works fine .. I'm interested to know if there's a "simpler" way to do this ..

That's not "How do I do this?". It's not "Help, this doesn't work". I'm asking opinion, asking if, maybe, anyone has thought of some way to do something that others haven't.

I'm sorry for having an outlook different to that of the "accept code, use it, there's obviously no other way" attitude. I've always thought it better to ask questions to help understanding rather then blindly accepting what's written.

*sigh* Oh well, eh, it's nearly the weekend.

-- Foxcub


In reply to Re: Re: Re: Re: "Commifying" a number by Tanalis
in thread "Commifying" a number by Tanalis

Title:
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, 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:
    & &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.