grafixnetwork
asked on
Multipe File - Variable Scope
I'm creating a project that will use several files:
ebzat.pl
setup.pl
admin.pl
I want to use strict, I want to place all variables in the setup.pl file. When I use my() for variable declaration in the setup.pl file, the variables are not visible to the other two scripts - I have required the setup file. Even though all the my() statement are outside any {} they are only visible to the setup.pl file.
How can I declare variables in one file so that they are visible in the other files - and still use strict?
ebzat.pl
setup.pl
admin.pl
I want to use strict, I want to place all variables in the setup.pl file. When I use my() for variable declaration in the setup.pl file, the variables are not visible to the other two scripts - I have required the setup file. Even though all the my() statement are outside any {} they are only visible to the setup.pl file.
How can I declare variables in one file so that they are visible in the other files - and still use strict?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER