I have a long list of variables which when I run the scripts in debug mode I want to print out the value of each varible.
$one = 1;
$two = 1;
$three = 0;
$four = 1;
$five = 0;
Right now I'm just printing them out a long way such as:
Print "\$one is: $one\n\$two is: $two\n\$three is: $three\n\$four is $four\n\$five is $five\n";
With a long list of variables and this is not very good for sure, I've tried to put the list of variables in a hash then print out the keys and values for them but not getting it to work, I know there is a simple way to do this but not getting it to work.
Can someone show me how to do this?