in reply to Re^3: Environment variable
in thread Environment variable

The hash methods are simpler, since they link the two lists implicitly.
Loop over the keys, and if the value doesn't match the environment variable, then it is wrong.

And no chance of your keys and values getting out of synch when you want to add one!