.
I've a library file which has a subroutine to open a file and assign values from the files to variables. This library file is required (using 'require') by a couple of other files that require the use of those variables. When I declare those variable in the library with 'my', the code doesn't work. Removing 'my' - i.e. making those variables global - solves the problem.
.
What is the normal way to declare variables in a library file that are used by pieces of code in other scripts via 'requre'?
.
I hope my question is clear and I look forward to hearing from you.