• MORE:
  • Perl Camel
  • rss
  • GitHub logo
Perl.com
  •   ABOUT
  •   AUTHORS
  •   CATEGORIES
  • #
      TAGS

Perl Style

Dec 31, 1997 by Tom Christiansen

Contents

  1. Everyone Has an Opinion
  2. Program Perl, Not C/BASIC/Java/Pascal/etc
  3. Elegance
  4. Defensive Programming
  5. The Art of Commenting Code
  6. On the Naming of Names (Form)
  7. On the Naming of Names (Content)
  8. Length of Variable Names
  9. Parallelism
  10. Embrace && and || for Control and Values
  11. Learn Precedence
  12. Don’t Overdo `?:’
  13. Never define “TRUE” and “FALSE”
  14. Embrace Pattern Matching
  15. Changing en passant
  16. Negative Array Subscripts
  17. Embrace Hashes
  18. Use Hashes for Sets
  19. Use Hashes for the First Time
  20. Use Hashes of Records, not Parallel Arrays
  21. Use $_ in Short Code
  22. Use foreach() Loops
  23. Avoid Byte Processing
  24. Avoid Symbolic References
  25. Using A Hash Instead of $$name
  26. Avoid Testing eof
  27. Avoid Gratuitous Backslashes
  28. Reduce Complexity
  29. Reduce Complexity (solution)
  30. Loop Hoisting
  31. Break Complex Tasks Up
  32. Break Programs into Separate Processes
  33. Data-Oriented Programming
  34. Configuration Files
  35. Functions as Data
  36. Closures
  37. Learn to Switch with for
  38. Switch by Using do{} Creatively
  39. Switch with for via && and ||
  40. Switch Using for and do{} Even More Creatively
  41. The Care and Feeding of Modules
  42. Patches
  43. From Perlstyle (part 1)
  44. From Perlstyle (part 2)

Tags

programming-languages

Tom Christiansen

Browse their articles

Feedback

Something wrong with this article? Help us out by opening an issue or pull request on GitHub

Site Map
  • Home

  • About

  • Authors

  • Categories

  • Tags

Contact Us

To get in touch, send an email to perl.com-editor@perl.org, or submit an issue to perladvent/perldotcom on GitHub.

Perl Camel rss GitHub logo

License

This work is licensed under a Creative Commons Attribution-NonCommercial 3.0 Unported License.

Creative Commons License

Legal

Perl.com and the authors make no representations with respect to the accuracy or completeness of the contents of all work on this website and specifically disclaim all warranties, including without limitation warranties of fitness for a particular purpose. The information published on this website may not be suitable for every situation. All work on this website is provided with the understanding that Perl.com and the authors are not engaged in rendering professional services. Neither Perl.com nor the authors shall be liable for damages arising herefrom.