in reply to How to write test code to test the perl script

I generally write my scripts as modulinos because they allow me to do proper unit testing. It doesn't take away from their nature as a scripts and it allows them to act as packages if need be.

The take away here, of course, is that you can use testing methods that work well for packages if you went with this approach. It's already been mentioned that you should look at Test::Simple and Test::More.

  • Comment on Re: How to write test code to test the perl script