A one liner to read which values I expect from my config file.

$expectedNodes{/(\S+)/?$1:''}++ for <CONFIG>;

These can later be checked with:

exists $expectedNodes{$qustionableValue}