I wanted something quick that wouldn't involve me putting credentials into the scripts themselves .. and would also allow the credentials to be shared between multiple scripts. Putting them in a module that wasn't covered by version control seemed to be the easy solution.
In hindsight, a better way would have been to create a credentials module that would do a lookup in a JSON configuration file .. just so I don't have to copy the four lines of code to open, read and transform JSON into a Perl data structure. That's for the future, I guess.
Anyway, I have a solution that works fine right now. Thanks for the feedback.
In reply to Re^2: Accessing module variables
by talexb
in thread Accessing module variables
by talexb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |