in reply to Testing parts of perl scripts

I think you may find Test::Simple and Test::More helpful. This is the "standard Perl testing" to which Tanktalus is referring.

The documentation in the above modules will tell you about the mechanics of writing tests. However, a more important issue is deciding what you want to test for. To plan that, you might want to walk yourself through the following steps:

The above is a very general overview. Perhaps, if you could give us more information about the nature of the function that you are trying to test, we might be able to point you to some additional modules in CPAN that could make your testing life easier. For testing the impact of environmental factors, CPAN has several modules for creating mock environments and mock system components. If your outputs are complicated, there are also numerous modules available for testing and diagnosing errors in complex data structures and long strings.

Best, beth