in reply to global function decleration

You can use the standard Exporter module for this.