in reply to writing test code in perl

Start by having a read of Test::Simple. Think about what your code should do in various cases and write a small test for these. If you should run into trouble, post a small example illustrating any problems you have

Cheers,
R.

Pereant, qui ante nos nostra dixerunt!