nysus has asked for the wisdom of the Perl Monks concerning the following question:
I've written a module. When the module is running on machine X, I want a certain directory to be set to Y. When running on machine A, I want the directory to be B. I'm assuming that the best way to achieve this is through some kind of config file for the module. Instead of rolling my own solution, I'm guessing there is already a CPAN module for this. I'm familiar with Config::Simple but wondering if there might be something out there more specific for this task for setting "environment" variables for use with modules. Thanks.
$PM = "Perl Monk's";
$MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate";
$nysus = $PM . ' ' . $MCF;
Click here if you love Perl Monks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Best practice for setting module "environment" variables
by shmem (Chancellor) on May 06, 2017 at 18:55 UTC | |
|
Re: Best practice for setting module "environment" variables
by Discipulus (Canon) on May 06, 2017 at 18:48 UTC | |
|
Re: Best practice for setting module "environment" variables
by BillKSmith (Monsignor) on May 06, 2017 at 22:01 UTC | |
|
Re: Best practice for setting module "environment" variables
by kevbot (Vicar) on May 07, 2017 at 05:57 UTC |