http://www.perlmonks.org?node_id=419883


in reply to global function decleration

You can use the standard Exporter module for this.