### Re^4: Operator precedence

by Tux (Abbot)
 on Jan 20, 2013 at 13:51 UTC ( #1014291=note: print w/replies, xml ) Need Help??

in reply to Re^3: Operator precedence

I do feel I am a seasoned perl programmer myself, but in this example, that B::Deparse only confuses me. Who would ever write

```banana  or cherry  if apple ;

to make things clear? I would NEVER use that construct. The give construct by the OP causes no mental parsing problems whatsoever.

Enjoy, Have FUN! H.Merijn

Replies are listed 'Best First'.
Re^5: Operator precedence
by BrowserUk (Pope) on Jan 20, 2013 at 14:47 UTC
to make things clear? I would NEVER use that construct.

I wasn't advocating it, I was just amused by it :)

That said, I think the terms confuse things because they mean nothing, How about:

```open( FH, '<', \$ARGV[ 2 ] ) or die( "\$! : \$ARGV[ 2 ]" ) if \$ARGV[ 2 ];

Or:

```eval \$code or die \$@ if \$code;

Doesn't seem so uncommon once you substitute realistic terms.

With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

All evenly confusing, as my mind hates statement modifiers. I try to prevent using them as long as possible. To me statement if expression; reads as utter crap. I prefer reading expression and statement;. YMMV. I completely realize not all our minds work the same, so any other reader might be confused the other way round. Mixing these will hurt both.

The only statement modifier I am comfortable with is for in simple expressions like s{\s+\$}{} for @foo;.

Enjoy, Have FUN! H.Merijn
To me statement if expression; reads as utter crap.

Hm. I find 'Pick up a bottle of duty free Scotch if you have time' and 'If you have time, pick up a bottle of duty free Scotch' completely interchangeable.

And 'beat the egg whites until they form soft peaks', infinitely preferable to 'until they form soft peaks; beat the egg whites';

With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
ol

Create A New User
Node Status?
node history
Node Type: note [id://1014291]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2018-04-27 07:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
Voting Booth?
My travels bear the most uncanny semblance to ...

Results (97 votes). Check out past polls.

Notices?