[Solved] How can I read in a variable/value which is a runtime parameter that is inside a constant list of hashes?
As has been explained, your ERROR_SW is a constant, and may not contain run-time variables If you intended $switch_ip and $timeout to also be constant values then, because use constant is evaluated at compile time, you would also have to declare and define these two variables beforehand. Like this use strict; use warnings ‘all’; my … Read more