in reply to How to pass a value from main program back to a module

You can set a global variable in the module, for example $Module::conf_file = $ARGV[0]. Within Module.pm, any reference to $conf_file will then have that value.

Alternatively, you could restructure your module as an object-oriented class, pass the $conf_file as a parameter to the constructor, and save it in the object.