in reply to Testing A Stand Alone Application

You can change the line main(); to main() unless caller;.

Then you can load the script from another file, for example from a test file, without executing any code. That way you get simple access to all other subs.

(Disclaimer: I haven't actually tried it, but somebody recommended it in a recent thread).