Hi all, How to pass a command line argument received in main program back to a module.
# main program
$conf_file = ARGV[0];
# Module.pm
In this module i have a lot of subroutines that uses this onfiguration file and for the subroutines the parameters picked up from the configuration file is same.
Currently i am passing the configuration file to each subroutine and in each subroutine i am parsing the configuration file to receive the inputs.
I want to know if there is a way to pass this $conf_file name to the module so that i can get all the inputs from the configuration file once, and then all the subroutines can use the same inputs.