Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Re^6: Pattern Matching Query

by PhiRatE (Monk)
on Sep 19, 2002 at 03:33 UTC ( [id://199069]=note: print w/replies, xml ) Need Help??


in reply to Re^6: Pattern Matching Query
in thread Pattern Matching Query

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 :)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://199069]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2024-03-19 07:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found