I have written a small Perl script and now I would like to create a test suite for it. I thought it would be nice to be able to use
the script as a module, import t
Since brian seems to be asleep right now, here's a pointer to what he calls modulinos. This is basically a recipe for building scripts that act like modules or modules that can be run like scripts. Sounds exactly like what you are looking for.
Mastering Perl is definitely a book worth reading (and buying).