package MyAppCommon; use strict; sub CommonPageStart { ... } sub CommonPageEnd { ... } 1; __END__ # and then, in your scripts use MyAppCommon; # use is basically like require... see the docs for details MyAppCommon::CommonPageStart(...); # your stuff MyAppCommon::CommonPageEnd(...); #### ------------ :Wq Not an editor command: Wq