Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Logical expression style

by hsmyers (Canon)
on Jul 12, 2002 at 17:49 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2024-04-19 22:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found