Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
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

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?

What's my password?
Create A New User
Domain Nodelet?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (2)
As of 2023-09-25 06:11 GMT
Find Nodes?
    Voting Booth?

    No recent polls found