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

2. Idiomatic Perl

Perl is a language designed by a linguist, and as much as any human language, Perl is a language of idioms.

What we call idiomatic Perl is the mixture of elegance and custom that comes naturally to Perl programmers, or we hope at least the majority of them, after experience and experimentation.

Exactly what is idiomatic and what is purely a matter of style or opinion is debatable. There are many different ways to express both simple and complex algorithms in Perl. Some ways, however, are clearly more “right” than others. Although Perl’s motto may be “There’s More Than One Way To Do It,” the corollary is, “But Most of Them Are Wrong,” or “Some Ways Are Better Than Others.”

Idiom and convention are very important in Perl. They ...

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