nysus has asked for the wisdom of the Perl Monks concerning the following question:
I'm stuck on how to create a data file that can be read and written to. If I used File::ShareDir, I find that I don't have permission to write to the data file (it's a json file with oauth info that has to be periodically udpated). If I stick the module in a directory within the module, the path to the data file cannot be found by both my test scripts and the module when it is actually installed . I suppose I could get the absolute location of the module on the system and tack that on the front of the file name but I'm wondering if there is a better recommendation for handling this problem. Thanks!
$PM = "Perl Monk's";
$MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate Priest";
$nysus = $PM . ' ' . $MCF;
Click here if you love Perl Monks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Reading/writing to a module's data file
by haj (Vicar) on Aug 05, 2018 at 10:10 UTC | |
|
Re: Reading/writing to a module's data file
by kevbot (Vicar) on Aug 05, 2018 at 06:22 UTC | |
|
Re: Reading/writing to a module's data file
by Anonymous Monk on Aug 05, 2018 at 10:15 UTC | |
by nysus (Parson) on Aug 05, 2018 at 14:27 UTC |