You are looking at a very old, but free version of the course. If you are interesed the most recent version, check it out on the Perl Maven site.

Chapter 5. Basic Testing Framework in Perl

5.1. Testing a simple command line tool

First we'll talk about a simple application with simple tests and from there you'll be able to move on to test more complex applications. I have a new calculator program called "mycalc". It expects a mathematical expression on the command line and prints the result on the screen. e.g.:

Example 5-1. mycalc on the command line

> mycalc 3 + 4  
Let's look at it first an then write a couple of tests for it.

If you are interested in on-site trainings by the author, please contact me directly.