Skip to Content
Effective Perl Programming: Ways to Write Better, More Idiomatic Perl, Second Edition
book

Effective Perl Programming: Ways to Write Better, More Idiomatic Perl, Second Edition

by Joseph N. Hall, Joshua A. McAdams, brian d foy
April 2010
Intermediate to advanced
504 pages
9h 56m
English
Addison-Wesley Professional
Content preview from Effective Perl Programming: Ways to Write Better, More Idiomatic Perl, Second Edition

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, ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Advanced Perl Programming

Advanced Perl Programming

Sriram Srinivasan
Perl in a Nutshell, 2nd Edition

Perl in a Nutshell, 2nd Edition

Nathan Patwardhan, Ellen Siever, Stephen Spainhour
Perl Best Practices

Perl Best Practices

Damian Conway
Perl by Example

Perl by Example

Ellie Quigley

Publisher Resources

ISBN: 9780321718303Purchase book