in reply to How to validate %hash = ( 'a' => 'b', ...);
If you have an odd number of dots instead of commas, you will have an odd number of elements in your hash. use warnings; use strict; should point this out to you. (You do always use those, especially when developing / debugging, right?)