Sam already told you the best possible advice to your actual question - upload it to http://cpan.org. Be sure to have looked at the other best-practices modules on CPAN like CGI, CGI::Session, and then the various things that tack authentication onto CGI::Session.