The Perl Conference Salt Lake City 2018 Banner

Perl Style: Embrace Pattern Matching

  • Regular Expressions are your friend. More than that, they’re a whole new way of thinking.
  • Just as chess players see patterns in the board positions their pieces control, Perl adepts look at data in terms of patterns.
  • Although most modern programming languages offer primitive pattern matching tools, usually through an extra library, Perl’s patterns are directly integrated into the language core. /.../, $1, etc.
  • Perl’s patterns boast features not found in other languages’ pattern matching, features that encourage a whole different way of looking at data.

Forward to Changing en passant
Back to Never define “TRUE” and “FALSE”
Up to index

Copyright © 1998, Tom Christiansen All rights reserved.

Tags

Feedback

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