O'Reilly logo

Effective Perl Programming: Ways to Write Better, More Idiomatic Perl, Second Edition by brian d foy, Joshua A. McAdams, Joseph N. Hall

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

3. Regular Expressions

Perl’s regular expressions are a language unto themselves, and that language seems almost as complex as Perl, perhaps even more so.

You don’t have to use everything, but there are some features of regular expressions that will make your life much easier. This chapter shows you some of their more-popular features.

Although Perl’s regular-expression engine contains many optimizations for efficiency, it’s possible—and easy at times—to write matches and substitutions that run much more slowly than they should.

Efficiency may not always be your primary objective. In fact, efficiency should rarely be your primary objective in software development. Generally, a programmer’s first priority should be to develop adequate, robust, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required