Hrm. I agree, I had not intentionally mis-formatted yours, I had simply cut&paste what I had several times :) ah cut&paste, I love thee and yet thy use doth cause me pain.

I dislike the return - unless structure, as I said, I have a bad memory, I prefer my condition first, so that I can compare my mental state against that and continue or discard the block depending on the result. If I have to read the operation first, I then have to remember what that was when I reach the condition :)

if (you're using formatting to line one up) { you have to use formatti +ng to line the other up as well }; {I think I can stop here} unless (another example is used).

You're not kidding me :) you really do write your code like you write your english :) :)

For reference, this is how I write the same thing in english:

Regarding this particular example, if you're using formatting to line +one up you have to use formatting to line the other up as well.

Thats highly amusing. Notice that the way I do it, I've put a guard clause in at the start of the sentence, effectively:

if (!this particular example) { return } if (you're using formatting to line one up) { you have to use formatti +ng to line the other up as well }

Thats kinda cool :)


In reply to Re: Re^6: Pattern Matching Query by PhiRatE
in thread Pattern Matching Query by Elgon

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.