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.
In reply to Re: How to pass a value from main program back to a module
by friedo
in thread How to pass a value from main program back to a module
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |