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

10. Testing

Perl has an amazing test culture, and a great set of tools for testing and managing your code. It might even have some of the most widely tested code on the planet, thanks to CPAN Testers (Item 97).

Perl has had a testing infrastructure in place since the first Perl modules came out. The testing craze really took off when Michael Schwern starting pushing testing with the Test::More module, which made testing almost trivial. You simply loaded the module and called some convenience functions:

image

The Test::More module emits TAP (Test Anywhere Protocol), a simple results format that was started in Perl and has spread to many other languages. ...

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