Perl Mongers


 Our sponsors

Pragmatic Contract Programming in Perl

By Erwan Lemonnier (‎R1‎) from Stockholm.pm
Date: Saturday, 24 May 2008 10:00
Duration: 40 minutes
Language:
Tags: contract cpan


Perl is a weakly typed language with dynamic variable binding and that opens the door to a number of small programming mistakes that become bothering when software matures. A way to compensate for Perl's lack of type checking is to use some ideas from the programming by contract paradigm.

During this talk, we will go through the main ideas from the programming by contract paradigm and see how they are implemented by various Perl modules.

We will focus in particular on the module Sub::Contract that offers a simple and pragmatic implementation of the most useful aspects of contract programming.