Hi Guys,
I have a development version of a script which is 99% the same as the production script except for about 40 variables which are mostly paths and usernames and such. I was hoping to just have a line in the beginning of the code like:
require "/path/to/file/";
which would contain all my variables, and then I could extract them from the program and never have to worry about changing them again.
After doing some googling, it seems like this is better achieved when the file you are including contains subroutines instead of variables, but I just want my code to be cleaner and have less variables to change. What is the perl way of doing this?
Many thanks
In reply to Development version of a script? by kurt2439
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |