Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: 20 most important Perl Best Practices

by runrig (Abbot)
on Aug 22, 2012 at 20:54 UTC ( #989142=note: print w/replies, xml ) Need Help??


in reply to 20 most important Perl Best Practices

13) Use unless and until as little as possible.

I wouldn't say that. I would say "Don't use unless with elsif/else blocks". That's just ridiculous.

And don't use it in combination with and/or logic because it requires yet another mental step of negation at the end.

  • Comment on Re: 20 most important Perl Best Practices

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://989142]
help
Chatterbox?
erix .oO( apparently but does not GotToBFast )
[Discipulus]: now i must come back to my house/hoven monks: dont do interesting discussion in my absence!
[erix]: or apparently, now it does :)
[GotToBTru]: heh
erix prods ambrus to (re-)start cbstream...
[GotToBTru]: I've got a program with an if ... or ... statement with 80 clauses
[stevieb]: 80 clauses? dispatch table?
[GotToBTru]: no, lookup
[stevieb]: no, I mean have you considered using a dispatch table. an 80 condition if/else is huge :)

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (11)
As of 2017-06-22 12:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (519 votes). Check out past polls.