in reply to pass variable at load time

If you follow Ikegami's first example above (which you probably should) and your module is using Exporter, note that creating your own import function will interfere with Exporter's behaviour.

If so, the Exporter docs explain how to deal with this.