Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Logical expression style

by hsmyers (Canon)
on Jul 12, 2002 at 17:49 UTC ( #181353=note: print w/replies, xml ) Need Help??


in reply to Logical expression style

I try and avoid thinking about it! Actually what I do is run things through perltidy and live with the results. For instance, the code:
if ($a or $b or $c or $d or $e or $f or $g or $h or $i or $j or $k or +$l or $m or $n) { }
when run through perltidy comes out like:
if ( $a or $b or $c or $d or $e or $f or $g or $h or $i or $j or $k or $l or $m or $n ) { }
Skipping lightly over endless arguments about just where the "damn curly brace"™ should go gives me extra time to realize that the silly thing is missing or the like!

–hsm

"Never try to teach a pig to sing…it wastes your time and it annoys the pig."

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2022-08-08 19:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?