Translated how-to-create-a-perl-module-for-code-reuse.